From 3616278ada48fb316d7fbd1b57073518fad9e863 Mon Sep 17 00:00:00 2001 From: Qiang Xue Date: Fri, 12 Apr 2013 07:08:01 -0400 Subject: [PATCH] typo. --- framework/base/Application.php | 2 +- framework/base/ErrorException.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/base/Application.php b/framework/base/Application.php index e1c1d60..1dad257 100644 --- a/framework/base/Application.php +++ b/framework/base/Application.php @@ -165,7 +165,7 @@ class Application extends Module if (YII_ENABLE_ERROR_HANDLER) { $error = error_get_last(); - if (ErrorException::isFatalErorr($error)) { + if (ErrorException::isFatalError($error)) { unset($this->_memoryReserve); $exception = new ErrorException($error['message'], $error['type'], $error['type'], $error['file'], $error['line']); $this->logException($exception); diff --git a/framework/base/ErrorException.php b/framework/base/ErrorException.php index 93390e7..b41e9ed 100644 --- a/framework/base/ErrorException.php +++ b/framework/base/ErrorException.php @@ -79,7 +79,7 @@ class ErrorException extends Exception * @param array $error error got from error_get_last() * @return bool if error is one of fatal type */ - public static function isFatalErorr($error) + public static function isFatalError($error) { return isset($error['type']) && in_array($error['type'], array(E_ERROR, E_PARSE, E_CORE_ERROR, E_CORE_WARNING, E_COMPILE_ERROR, E_COMPILE_WARNING)); }