Index: trunk/kernel/include/parse.php =================================================================== diff -u -r13 -r270 --- trunk/kernel/include/parse.php (.../parse.php) (revision 13) +++ trunk/kernel/include/parse.php (.../parse.php) (revision 270) @@ -234,33 +234,28 @@ $this->parsed=TRUE; } - function Execute() - { -// global $logentry; - - $func = $this->name; -// $logentry++; -// LogEntry("Parsing Tag: $func\n"); - $override = "_".$func; - //echo "Function: $func; Parameters:
"; print_r($this->attributes); echo "
"; - if(function_exists($override)) - { - $ret = @$override($this->attributes); - } - else - { - if(function_exists($func)) - { - $ret = @$func($this->attributes); - } - else - { - //$ret = "{Unknown Tag:" .$this->name."}"; - } - } -// $LogEntry--; - return $ret; - } + function Execute() + { + $func = $this->name; + $override = "_".$func; + + if( function_exists($override) ) + { + $ret = @$override($this->attributes); + } + else + { + if(function_exists($func)) + { + $ret = @$func($this->attributes); + } + else + { + $ret = "{Unknown Tag:" .$this->name."}"; + } + } + return $ret; + } } class clsTemplate