From b89b74e9339b26495f47dcd9dc219f1789919a6b Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 17 Jan 2013 17:40:27 +0100 Subject: [PATCH] Fix: load at wrong place --- htdocs/core/class/html.formother.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htdocs/core/class/html.formother.class.php b/htdocs/core/class/html.formother.class.php index 47cab7e5fd2..2feec9eb821 100644 --- a/htdocs/core/class/html.formother.class.php +++ b/htdocs/core/class/html.formother.class.php @@ -822,7 +822,6 @@ class FormOther $arrayboxtoactivatelabel=array(); if (! empty($user->conf->$confuserzone)) { - $langs->load("boxes"); foreach($boxactivated as $box) { if (! empty($boxidactivatedforuser[$box->id])) continue; // Already visible for user @@ -862,6 +861,8 @@ class FormOther if ($nbboxactivated) { + $langs->load("boxes"); + $emptybox=new ModeleBoxes($db); print '';