mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-20 15:33:47 +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) {
|
function tr($msg,$key=null) {
|
||||||
$val = $GLOBALS['Smarty']->get_template_vars($msg);
|
if (is_array($msg)) {
|
||||||
if (!$val)
|
echo __($msg[$key]);
|
||||||
$val=$msg;
|
|
||||||
if (is_array($val)) {
|
|
||||||
echo __($val[$key]);
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
$val = $GLOBALS['Smarty']->get_template_vars($msg);
|
||||||
|
if (!$val)
|
||||||
|
$val=$msg;
|
||||||
echo __($val);
|
echo __($val);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue