Revert "NEW Converted Form::selectyesno to a static function"

This reverts commit 5a9e686bf9.
This commit is contained in:
Laurent Destailleur 2016-03-25 15:34:06 +01:00
parent 2220f7f6f2
commit 4dc6acafe0

View File

@ -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;