From 02caa4eb24f155fac3c5b3664a66183c06bb5271 Mon Sep 17 00:00:00 2001 From: yysa Date: Mon, 10 Nov 2014 21:03:55 +0100 Subject: [PATCH] Make iForm static, as it is used as such in other places --- lib/helper/html_form.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/helper/html_form.php b/lib/helper/html_form.php index 520a4c2..fb688f2 100644 --- a/lib/helper/html_form.php +++ b/lib/helper/html_form.php @@ -30,7 +30,7 @@ class HtmlFormHelper extends Helper { if (!isset($this->obj)) { throw AppException('Can not generate form : no object given in Helper'); } - $str = $this->iForm($name, $method, $action); + $str = self::iForm($name, $method, $action); $str .= $this->obj->iFields($class); $str .= ''; return $str; @@ -42,7 +42,7 @@ class HtmlFormHelper extends Helper { * @param string $method post, get, or file (post by default) * @param string $action URL to which form is sent (current page by default) */ - public function iForm($name, $method='post', $action='', $class='') { + public static function iForm($name, $method='post', $action='', $class='') { $fc = FrontController::getInstance(); if (!$action) { $action = $fc->thisUrl();