mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-20 12:22:10 +01:00
"using ungreeded search for egw::lang()"
This commit is contained in:
parent
4df4fd9f06
commit
233875a181
@ -1855,8 +1855,8 @@ foreach($sess as $key => $val)
|
|||||||
}
|
}
|
||||||
$on = str_replace($matches[0],$matches[1],$on);
|
$on = str_replace($matches[0],$matches[1],$on);
|
||||||
}
|
}
|
||||||
|
// we need to search ungready (shortest possible match), to avoid catching to much
|
||||||
if (preg_match('/egw::lang\(["\']{1}(.*)["\']{1}\)/',$on,$matches)) {
|
if (preg_match('/egw::lang\(["\']{1}(.*)["\']{1}\)/U',$on,$matches)) {
|
||||||
$str = lang($matches[1]);
|
$str = lang($matches[1]);
|
||||||
$on = str_replace($matches[0],'\''.addslashes($str).'\'',$on);
|
$on = str_replace($matches[0],'\''.addslashes($str).'\'',$on);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user