mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-04-13 02:28:21 +02:00
use str_replace() where possible
This commit is contained in:
parent
e51d3f26ab
commit
90dbed8d0e
@ -288,7 +288,7 @@
|
|||||||
//print "<!-- " . $GLOBALS['_xh'][$parser]['params'][$i]. "-->\n";
|
//print "<!-- " . $GLOBALS['_xh'][$parser]['params'][$i]. "-->\n";
|
||||||
$plist .= "$i - " . $GLOBALS['_xh'][$parser]['params'][$i]. " \n";
|
$plist .= "$i - " . $GLOBALS['_xh'][$parser]['params'][$i]. " \n";
|
||||||
$code = '$m->addParam(' . $GLOBALS['_xh'][$parser]['params'][$i] . ');';
|
$code = '$m->addParam(' . $GLOBALS['_xh'][$parser]['params'][$i] . ');';
|
||||||
$code = ereg_replace(',,',",'',",$code);
|
$code = str_replace(',,',",'',",$code);
|
||||||
eval($code);
|
eval($code);
|
||||||
}
|
}
|
||||||
// uncomment this to really see what the server's getting!
|
// uncomment this to really see what the server's getting!
|
||||||
@ -373,7 +373,7 @@
|
|||||||
if ($sysCall)
|
if ($sysCall)
|
||||||
{
|
{
|
||||||
$code = '$r=' . $dmap[$methName]['function'] . '($this, $m);';
|
$code = '$r=' . $dmap[$methName]['function'] . '($this, $m);';
|
||||||
$code = ereg_replace(',,',",'',",$code);
|
$code = str_replace(',,',",'',",$code);
|
||||||
eval($code);
|
eval($code);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -381,7 +381,7 @@
|
|||||||
if (function_exists($dmap[$methName]['function']))
|
if (function_exists($dmap[$methName]['function']))
|
||||||
{
|
{
|
||||||
$code = '$r =' . $dmap[$methName]['function'] . '($m);';
|
$code = '$r =' . $dmap[$methName]['function'] . '($m);';
|
||||||
$code = ereg_replace(',,',",'',",$code);
|
$code = str_replace(',,',",'',",$code);
|
||||||
eval($code);
|
eval($code);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -169,8 +169,8 @@ in an alphabetic order.';
|
|||||||
{
|
{
|
||||||
// don't even ask me _why_ these come padded with
|
// don't even ask me _why_ these come padded with
|
||||||
// hyphens, I couldn't tell you :p
|
// hyphens, I couldn't tell you :p
|
||||||
$a=ereg_replace('-', '', $a);
|
$a = str_replace('-', '', $a);
|
||||||
$b=ereg_replace('-', '', $b);
|
$b = str_replace('-', '', $b);
|
||||||
|
|
||||||
if ($GLOBALS['agesorter_arr'][$a]==$agesorter[$b])
|
if ($GLOBALS['agesorter_arr'][$a]==$agesorter[$b])
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user