diff options
-rw-r--r-- | core/libraries/MY_Forge.php | 6 | ||||
-rw-r--r-- | modules/comment/controllers/comment.php | 2 | ||||
-rw-r--r-- | modules/user/controllers/login.php | 2 |
3 files changed, 8 insertions, 2 deletions
diff --git a/core/libraries/MY_Forge.php b/core/libraries/MY_Forge.php new file mode 100644 index 00000000..a954eb9e --- /dev/null +++ b/core/libraries/MY_Forge.php @@ -0,0 +1,6 @@ +<?php +class Forge extends Forge_Core { + public function render($template="form.html", $custom=false) { + return parent::render($template, $custom); + } +}
\ No newline at end of file diff --git a/modules/comment/controllers/comment.php b/modules/comment/controllers/comment.php index 67a4897b..d2135cf9 100644 --- a/modules/comment/controllers/comment.php +++ b/modules/comment/controllers/comment.php @@ -80,7 +80,7 @@ class Comment_Controller extends REST_Controller { $data = array('valid' => true, 'html' => sprintf(comment::show_comment_list($item_id))); } else { - $data = array('valid' => false, 'html' => sprintf($form->render("form.html"))); + $data = array('valid' => false, 'html' => sprintf($form->render())); } if (request::method() == "get") { diff --git a/modules/user/controllers/login.php b/modules/user/controllers/login.php index 586c9fa7..63548a4c 100644 --- a/modules/user/controllers/login.php +++ b/modules/user/controllers/login.php @@ -40,6 +40,6 @@ class Login_Controller extends Controller { } } - print $form->render("form.html", false); + print $form->render(); } }
\ No newline at end of file |