From 8fe237627c9ce589b05ef74cd690171f1afb5951 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Thu, 19 Mar 2009 18:08:59 +0000 Subject: [PATCH] =?UTF-8?q?-=20functions=20:=20fonction=20tr()=20ajout=20d?= =?UTF-8?q?u=20support=20de=20la=20traduction=20d'une=20simple=20cha=C3=AE?= =?UTF-8?q?ne.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- trunk/includes/functions.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/trunk/includes/functions.php b/trunk/includes/functions.php index 43700c0f..e0937233 100644 --- a/trunk/includes/functions.php +++ b/trunk/includes/functions.php @@ -431,6 +431,8 @@ function LSdebugDefined() { function tr($msg,$key=null) { $val = $GLOBALS['Smarty']->get_template_vars($msg); + if (!$val) + $val=$msg; if (is_array($val)) { echo __($val[$key]); }