mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 17:33:49 +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);
|
||||
}
|
||||
|
||||
if (preg_match('/egw::lang\(["\']{1}(.*)["\']{1}\)/',$on,$matches)) {
|
||||
// we need to search ungready (shortest possible match), to avoid catching to much
|
||||
if (preg_match('/egw::lang\(["\']{1}(.*)["\']{1}\)/U',$on,$matches)) {
|
||||
$str = lang($matches[1]);
|
||||
$on = str_replace($matches[0],'\''.addslashes($str).'\'',$on);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user