mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-19 00:29:21 +01:00
- Function tr() : Correction de la manière de faire.
This commit is contained in:
parent
065ee771d8
commit
a6e66a3a69
1 changed files with 5 additions and 5 deletions
|
@ -430,13 +430,13 @@ 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]);
|
||||
if (is_array($msg)) {
|
||||
echo __($msg[$key]);
|
||||
}
|
||||
else {
|
||||
$val = $GLOBALS['Smarty']->get_template_vars($msg);
|
||||
if (!$val)
|
||||
$val=$msg;
|
||||
echo __($val);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue