API CHANGE Removed LeftAndMain->getLastFormIn(), please use Form->formHtmlContent() instead

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92738 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2009-11-21 03:16:26 +00:00
parent 8f82a04377
commit 25ba16223a
3 changed files with 3 additions and 10 deletions

View File

@ -31,7 +31,8 @@ class CommentAdmin extends LeftAndMain {
}
public function showtable($params) {
return $this->getLastFormIn($this->renderWith('CommentAdmin_right'));
$form = $this->getEditForm();
return $form->formHtmlContent();
}
public function Section() {

View File

@ -358,10 +358,6 @@ class LeftAndMain extends Controller {
if($form) return $form->formHtmlContent();
else return "";
}
public function getLastFormIn($html) {
$parts = split('</?form[^>]*>', $html);
return $parts[sizeof($parts)-2];
}
//------------------------------------------------------------------------------------------//
// Main UI components

View File

@ -143,11 +143,7 @@ class ReportAdmin extends LeftAndMain {
if(Director::is_ajax()) {
SSViewer::setOption('rewriteHashlinks', false);
$result = $this->customise(array(
'EditForm' => $editForm
))->renderWith($this->getTemplatesWithSuffix('_right'));
return $this->getLastFormIn($result);
return $form->formHtmlContent();
}
return array();