mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-08-23 07:15:50 -04:00
Drop the call to render() and just use the View's __toString method to
print it out.
This commit is contained in:
@@ -26,7 +26,7 @@ class Comment_Controller extends REST_Controller {
|
||||
*/
|
||||
public function _form($comment) {
|
||||
$form = comment::get_edit_form($comment);
|
||||
print $form->render("form.html");
|
||||
print $form;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -58,7 +58,7 @@ class Comment_Controller extends REST_Controller {
|
||||
$comment->save();
|
||||
return;
|
||||
}
|
||||
print $form->render();
|
||||
print $form;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user