diff --git a/etemplate/inc/class.solangfile.inc.php b/etemplate/inc/class.solangfile.inc.php index c064f95e72..19020c46a7 100644 --- a/etemplate/inc/class.solangfile.inc.php +++ b/etemplate/inc/class.solangfile.inc.php @@ -184,7 +184,7 @@ class solangfile function parse_php_app($app,$fd) { - $reg_expr = '('.implode('|',array_keys($this->functions)).")[ \t]*\([ \t]*(.*)$"; + $reg_expr = '/('.implode('|',array_keys($this->functions)).")[ \t]*\([ \t]*(.*)$/i"; define('SEP',filesystem_separator()); $d=dir($fd); while ($fn=$d->read()) @@ -222,7 +222,7 @@ class solangfile foreach($lines as $n => $line) { //echo "line='$line', lines[1+$n]='".$lines[1+$n]."'
\n"; - while (eregi($reg_expr,$line,$parts)) + while (preg_match($reg_expr,$line,$parts)) { //echo "***func='$parts[1]', rest='$parts[2]'
\n"; $args = $this->functions[$parts[1]];