Code Duplication    Length = 8-8 lines in 2 locations

code/Controllers/CMSPageHistoryController.php 2 locations

@@ 317-324 (lines=8) @@
314
		$form = $this->CompareVersionsForm($version1, $version2);
315
316
		// javascript solution, render into template
317
		if($this->getRequest()->isAjax()) {
318
			return $this->customise(array(
319
				"EditForm" => $form
320
			))->renderWith(array(
321
				$this->class . '_EditForm',
322
				'LeftAndMain_Content'
323
			));
324
		}
325
326
		// non javascript, redirect the user to the page
327
		return $this->redirect(Controller::join_links(
@@ 355-362 (lines=8) @@
352
		}
353
354
		$request = $this->getRequest();
355
		if($request->isAjax()) {
356
			return $this->customise(array(
357
				"EditForm" => $this->ShowVersionForm($versionID)
358
			))->renderWith(array(
359
				$this->class . '_EditForm',
360
				'LeftAndMain_Content'
361
			));
362
		}
363
364
		// non javascript, redirect the user to the page
365
		return $this->redirect(Controller::join_links(