API CHANGE Deprecated LeftAndMain->getitem(), please use show() instead

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92744 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2009-11-21 03:16:40 +00:00
parent 64e042a2a3
commit 1308153458

View File

@ -343,16 +343,10 @@ class LeftAndMain extends Controller {
}
}
/**
* @deprecated 2.4 Please use show()
*/
public function getitem() {
$this->setCurrentPageID($_REQUEST['ID']);
SSViewer::setOption('rewriteHashlinks', false);
if(isset($_REQUEST['ID']) && is_numeric($_REQUEST['ID'])) {
$record = DataObject::get_by_id($this->stat('tree_class'), $_REQUEST['ID']);
if($record && !$record->canView()) return Security::permissionFailure($this);
}
$form = $this->getEditForm();
if($form) return $form->formHtmlContent();
else return "";