From e8861bc524688d9927f899a34f82057ce0b4fa9e Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Mon, 27 Oct 2008 17:37:39 +0000 Subject: [PATCH] Fix: select_lang error --- htdocs/html.formfile.class.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/htdocs/html.formfile.class.php b/htdocs/html.formfile.class.php index 06222e8fa1b..19437a065ae 100644 --- a/htdocs/html.formfile.class.php +++ b/htdocs/html.formfile.class.php @@ -288,7 +288,9 @@ class FormFile print ''; if($conf->global->MAIN_MULTILANGS && ! $forcenomultilang) { - $html->select_lang($langs->getDefaultLang()); + require_once(DOL_DOCUMENT_ROOT."/html.formadmin.class.php"); + $htmlAdmin = new FormAdmin($db); + $htmlAdmin->select_lang($langs->getDefaultLang()); } else {