From 23024a916265125c840705f9ece5c24f0adfb2d0 Mon Sep 17 00:00:00 2001 From: Awilum Date: Sat, 16 Mar 2013 13:33:26 +0200 Subject: [PATCH] Gelato: ErrorHandler fixes --- libraries/Gelato/ErrorHandler/ErrorHandler.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libraries/Gelato/ErrorHandler/ErrorHandler.php b/libraries/Gelato/ErrorHandler/ErrorHandler.php index bcda6ba..40d1ce8 100644 --- a/libraries/Gelato/ErrorHandler/ErrorHandler.php +++ b/libraries/Gelato/ErrorHandler/ErrorHandler.php @@ -99,7 +99,7 @@ class ErrorHandler * @param integer $line The line number where the error occurred * @return boolean */ - public static function errorHandler($code, $message, $file, $line) + public static function error($code, $message, $file, $line) { // If isset error_reporting and $code then throw new error exception if ((error_reporting() & $code) !== 0) { @@ -231,9 +231,9 @@ class ErrorHandler } /** - * Convert errors not caught by the errorHandler to ErrorExceptions. + * Convert errors not caught by the error handler to ErrorExceptions. */ - public static function fatalErrorHandler() + public static function fatal() { $e = error_get_last();