Code Duplication    Length = 7-7 lines in 2 locations

code/controllers/CMSMain.php 2 locations

@@ 211-217 (lines=7) @@
208
		);
209
	}
210
211
	public function LinkPageSettings() {
212
		if($id = $this->currentPageID()) {
213
			return $this->LinkWithSearch(
214
				Controller::join_links(singleton('CMSPageSettingsController')->Link('show'), $id)
215
			);
216
		}
217
	}
218
219
	public function LinkPageHistory() {
220
		if($id = $this->currentPageID()) {
@@ 219-225 (lines=7) @@
216
		}
217
	}
218
219
	public function LinkPageHistory() {
220
		if($id = $this->currentPageID()) {
221
			return $this->LinkWithSearch(
222
				Controller::join_links(singleton('CMSPageHistoryController')->Link('show'), $id)
223
			);
224
		}
225
	}
226
227
	public function LinkWithSearch($link) {
228
		// Whitelist to avoid side effects