Index: branches/RC/core/kernel/application.php =================================================================== diff -u -N -r9639 -r10027 --- branches/RC/core/kernel/application.php (.../application.php) (revision 9639) +++ branches/RC/core/kernel/application.php (.../application.php) (revision 10027) @@ -169,6 +169,13 @@ var $CachedProcessors = array(); //used when running compiled templates var $LambdaElements = 1; // for autonumbering unnamed RenderElements [any better place for this prop? KT] + + /** + * Holds current NParser tag while parsing, can be used in error messages to display template file and line + * + * @var unknown_type + */ + var $CurrentNTag = null; /** * Returns kApplication instance anywhere in the script. @@ -2161,6 +2168,7 @@ return true; } + $res = false; $i = 0; // while (not foreach) because it is array of references in some cases $eh_count = count($this->errorHandlers); while($i < $eh_count) @@ -2169,7 +2177,7 @@ { $object =& $this->errorHandlers[$i][0]; $method = $this->errorHandlers[$i][1]; - $object->$method($errno, $errstr, $errfile, $errline, $errcontext); + $res = $object->$method($errno, $errstr, $errfile, $errline, $errcontext); } else { @@ -2178,6 +2186,7 @@ } $i++; } + return $res; } /**