mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
MINOR Removed unused CMSMain->sendFormToBrowser()
This commit is contained in:
parent
055b3b9799
commit
22cd47cc84
@ -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
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user