Code Duplication    Length = 8-8 lines in 2 locations

code/controllers/CMSPageHistoryController.php 2 locations

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