diff --git a/htdocs/html.formfile.class.php b/htdocs/html.formfile.class.php index ff05920ac36..35aeb214e9f 100644 --- a/htdocs/html.formfile.class.php +++ b/htdocs/html.formfile.class.php @@ -250,6 +250,8 @@ class FormFile } $headershown=1; + + $html = new Form($db); print '
'; print ''; @@ -260,13 +262,13 @@ class FormFile print ''; print ''.$langs->trans('Model').''; print ''; - $this->select_array('model',$modellist,$modelselected,0,0,1); + $html->select_array('model',$modellist,$modelselected,0,0,1); $texte=$langs->trans('Generate'); print ''; print ''; if($conf->global->MAIN_MULTILANGS && ! $forcenomultilang) { - $this->select_lang($langs->getDefaultLang()); + $html->select_lang($langs->getDefaultLang()); } else {