Code Duplication    Length = 8-8 lines in 2 locations

code/controllers/CMSPageHistoryController.php 2 locations

@@ 298-305 (lines=8) @@
295
		$form = $this->CompareVersionsForm($version1, $version2);
296
297
		// javascript solution, render into template
298
		if($this->getRequest()->isAjax()) {
299
			return $this->customise(array(
300
				"EditForm" => $form
301
			))->renderWith(array(
302
				$this->class . '_EditForm',
303
				'LeftAndMain_Content'
304
			));
305
		}
306
307
		// non javascript, redirect the user to the page
308
		$this->redirect(Controller::join_links(
@@ 333-340 (lines=8) @@
330
331
		if(!$versionID) return;
332
333
		if($request->isAjax()) {
334
			return $this->customise(array(
335
				"EditForm" => $this->ShowVersionForm($versionID)
336
			))->renderWith(array(
337
				$this->class . '_EditForm',
338
				'LeftAndMain_Content'
339
			));
340
		}
341
342
		// non javascript, redirect the user to the page
343
		$this->redirect(Controller::join_links(