From 5a9e686bf9dce6b09dd6b9501f5b06bd92b30ef3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20Garci=CC=81a=20de=20La=20Fuente?= Date: Sun, 20 Mar 2016 13:46:42 +0100 Subject: [PATCH] NEW Converted Form::selectyesno to a static function --- 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 4ce4d393355..c589e01d561 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -3441,7 +3441,7 @@ class Form $formconfirm.= ''; $formconfirm.= ''.$question.''; $formconfirm.= ''; - $formconfirm.= $this->selectyesno("confirm",$newselectedchoice); + $formconfirm.= self::selectyesno("confirm",$newselectedchoice); $formconfirm.= ''; $formconfirm.= ''; $formconfirm.= ''."\n"; @@ -5381,7 +5381,7 @@ class Form * @param int $useempty 1=Add empty line * @return mixed See option */ - function selectyesno($htmlname,$value='',$option=0,$disabled=false,$useempty='') + public static function selectyesno($htmlname,$value='',$option=0,$disabled=false,$useempty='') { global $langs;