Changed Debug::loadErrorHandlers to use value returned by error_reporting() rather than E_ALL. This way, the user can adjust the error handler screens with the error_reporting function.

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@60555 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Hayden Smith 2008-08-12 23:50:28 +00:00
parent 62d0de45d8
commit b512e4bd3b

View File

@ -207,7 +207,7 @@ class Debug {
*/
static function loadErrorHandlers() {
//set_error_handler('errorHandler', (E_ALL ^ E_NOTICE) ^ E_USER_NOTICE);
set_error_handler('errorHandler', E_ALL);
set_error_handler('errorHandler', error_reporting());
set_exception_handler('exceptionHandler');
}