From f4ee9bdc428331bb10e089689637167440262aef Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Tue, 31 Mar 2009 13:22:23 +0000 Subject: [PATCH] =?UTF-8?q?-=20Function=20tr()=20:=20erreur=20dans=20le=20?= =?UTF-8?q?pr=C3=A9c=C3=A9dent=20commit.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- trunk/includes/functions.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/trunk/includes/functions.php b/trunk/includes/functions.php index f499295c..6e5aba97 100644 --- a/trunk/includes/functions.php +++ b/trunk/includes/functions.php @@ -437,7 +437,12 @@ function LSdebugDefined() { $val = $GLOBALS['Smarty']->get_template_vars($msg); if (!$val) $val=$msg; - echo __($val); + if (is_array($val)) { + echo __($val[$key]); + } + else { + echo __($val); + } } } ?>