From 65f08e966630f90fd4c2424037ffb20cb3489a81 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 27 Oct 2008 19:28:11 +0000 Subject: [PATCH] Fix: File not found when multilang interface is on --- htdocs/html.formfile.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/html.formfile.class.php b/htdocs/html.formfile.class.php index 19437a065ae..100e44a0d55 100644 --- a/htdocs/html.formfile.class.php +++ b/htdocs/html.formfile.class.php @@ -288,9 +288,9 @@ class FormFile print ''; if($conf->global->MAIN_MULTILANGS && ! $forcenomultilang) { - require_once(DOL_DOCUMENT_ROOT."/html.formadmin.class.php"); - $htmlAdmin = new FormAdmin($db); - $htmlAdmin->select_lang($langs->getDefaultLang()); + include_once(DOL_DOCUMENT_ROOT.'/html.formadmin.class.php'); + $formadmin=new FormAdmin($this->db); + $formadmin->select_lang($langs->getDefaultLang()); } else {