From 4dc6acafe0a0dc251322656e5086bca7db459055 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur <eldy@destailleur.fr> Date: Fri, 25 Mar 2016 15:34:06 +0100 Subject: [PATCH] Revert "NEW Converted Form::selectyesno to a static function" This reverts commit 5a9e686bf9dce6b09dd6b9501f5b06bd92b30ef3. --- htdocs/core/class/html.form.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index 501a5766054..39d9b270b2b 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -3447,7 +3447,7 @@ class Form $formconfirm.= '<tr class="valid">'; $formconfirm.= '<td class="valid">'.$question.'</td>'; $formconfirm.= '<td class="valid">'; - $formconfirm.= self::selectyesno("confirm",$newselectedchoice); + $formconfirm.= $this->selectyesno("confirm",$newselectedchoice); $formconfirm.= '</td>'; $formconfirm.= '<td class="valid" align="center"><input class="button" type="submit" value="'.$langs->trans("Validate").'"></td>'; $formconfirm.= '</tr>'."\n"; @@ -5388,7 +5388,7 @@ class Form * @param int $useempty 1=Add empty line * @return mixed See option */ - public static function selectyesno($htmlname,$value='',$option=0,$disabled=false,$useempty='') + function selectyesno($htmlname,$value='',$option=0,$disabled=false,$useempty='') { global $langs; -- GitLab