1
0
mirror of https://github.com/monstra-cms/monstra.git synced 2025-08-04 20:27:40 +02:00

Gelato: ErrorHandler fixes

This commit is contained in:
Awilum
2013-03-16 13:33:26 +02:00
parent 6b9077ef35
commit 23024a9162

View File

@@ -99,7 +99,7 @@ class ErrorHandler
* @param integer $line The line number where the error occurred * @param integer $line The line number where the error occurred
* @return boolean * @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 isset error_reporting and $code then throw new error exception
if ((error_reporting() & $code) !== 0) { 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(); $e = error_get_last();