MINOR Removed unused CMSMain->sendFormToBrowser()

This commit is contained in:
Ingo Schommer 2012-03-09 23:07:44 +01:00
parent 055b3b9799
commit 22cd47cc84

View File

@ -868,19 +868,6 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr
return $form->forTemplate(); return $form->forTemplate();
} }
function sendFormToBrowser($templateData) {
if(Director::is_ajax()) {
SSViewer::setOption('rewriteHashlinks', false);
$result = $this->customise($templateData)->renderWith($this->class . '_right');
$parts = split('</?form[^>]*>', $result);
return $parts[sizeof($parts)-2];
} else {
return array(
"Right" => $this->customise($templateData)->renderWith($this->class . '_right'),
);
}
}
/** /**
* Batch Actions Handler * Batch Actions Handler
*/ */