use str_replace() where possible

This commit is contained in:
Miles Lott 2003-12-20 18:29:02 +00:00
parent e51d3f26ab
commit 90dbed8d0e
2 changed files with 5 additions and 5 deletions

View File

@ -288,7 +288,7 @@
//print "<!-- " . $GLOBALS['_xh'][$parser]['params'][$i]. "-->\n";
$plist .= "$i - " . $GLOBALS['_xh'][$parser]['params'][$i]. " \n";
$code = '$m->addParam(' . $GLOBALS['_xh'][$parser]['params'][$i] . ');';
$code = ereg_replace(',,',",'',",$code);
$code = str_replace(',,',",'',",$code);
eval($code);
}
// uncomment this to really see what the server's getting!
@ -373,7 +373,7 @@
if ($sysCall)
{
$code = '$r=' . $dmap[$methName]['function'] . '($this, $m);';
$code = ereg_replace(',,',",'',",$code);
$code = str_replace(',,',",'',",$code);
eval($code);
}
else
@ -381,7 +381,7 @@
if (function_exists($dmap[$methName]['function']))
{
$code = '$r =' . $dmap[$methName]['function'] . '($m);';
$code = ereg_replace(',,',",'',",$code);
$code = str_replace(',,',",'',",$code);
eval($code);
}
else

View File

@ -169,8 +169,8 @@ in an alphabetic order.';
{
// don't even ask me _why_ these come padded with
// hyphens, I couldn't tell you :p
$a=ereg_replace('-', '', $a);
$b=ereg_replace('-', '', $b);
$a = str_replace('-', '', $a);
$b = str_replace('-', '', $b);
if ($GLOBALS['agesorter_arr'][$a]==$agesorter[$b])
{