Fix: Si le message traduit contient des < ou >, il est mal affiché.
This commit is contained in:
parent
b5a4379dc7
commit
fde2c92e7a
@ -115,19 +115,7 @@ class Translate {
|
|||||||
function trans($str, $param1='', $param2='', $param3='') {
|
function trans($str, $param1='', $param2='', $param3='') {
|
||||||
if ($this->tab_translate[$str]) {
|
if ($this->tab_translate[$str]) {
|
||||||
// Si la traduction est disponible
|
// Si la traduction est disponible
|
||||||
if ($param1) {
|
return sprintf($this->tab_translate[$str],htmlentities($param1),htmlentities($param2),htmlentities($param3));
|
||||||
$param1=ereg_replace("<","<",$param1);
|
|
||||||
$param1=ereg_replace(">",">",$param1);
|
|
||||||
}
|
|
||||||
if ($param2) {
|
|
||||||
$param2=ereg_replace("<","<",$param2);
|
|
||||||
$param2=ereg_replace(">",">",$param2);
|
|
||||||
}
|
|
||||||
if ($param3) {
|
|
||||||
$param3=ereg_replace("<","<",$param3);
|
|
||||||
$param3=ereg_replace(">",">",$param3);
|
|
||||||
}
|
|
||||||
return sprintf($this->tab_translate[$str],$param1,$param2,$param3);
|
|
||||||
}
|
}
|
||||||
return $str;
|
return $str;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user