From: <var...@us...> - 2009-04-01 13:22:23
|
Revision: 6760 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=6760&view=rev Author: vargenau Date: 2009-04-01 12:48:10 +0000 (Wed, 01 Apr 2009) Log Message: ----------- Be more verbose if DEBUG is on Modified Paths: -------------- trunk/lib/ErrorManager.php Modified: trunk/lib/ErrorManager.php =================================================================== --- trunk/lib/ErrorManager.php 2009-04-01 12:45:21 UTC (rev 6759) +++ trunk/lib/ErrorManager.php 2009-04-01 12:48:10 UTC (rev 6760) @@ -362,16 +362,17 @@ * * @access private */ -function ErrorManager_errorHandler($errno, $errstr, $errfile, $errline) +function ErrorManager_errorHandler($errno, $errstr, $errfile, $errline) { if (!isset($GLOBALS['ErrorManager'])) { $GLOBALS['ErrorManager'] = new ErrorManager; } - - if (defined('DEBUG') and DEBUG) - $error = new PhpWikiError($errno, $errstr, $errfile, $errline); - else - $error = new PhpErrorOnce($errno, $errstr, $errfile, $errline); + + if (defined('DEBUG') and DEBUG) { + $error = new PhpError($errno, $errstr, $errfile, $errline); + } else { + $error = new PhpErrorOnce($errno, $errstr, $errfile, $errline); + } $GLOBALS['ErrorManager']->handleError($error); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |