diff options
author | mattab <matthieu.aubry@gmail.com> | 2013-11-06 02:06:37 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2013-11-06 02:06:37 +0400 |
commit | 742794dd8dd05775aa686a575def21492e021e11 (patch) | |
tree | 26f543959108e1499ed7706e871f8b638ce955d5 /core/ExceptionHandler.php | |
parent | 16fb4919ef3d3674663d5cbc69b69097b861b95d (diff) |
Fix bug reported by solfire Fatal error: Constructor Piwik\ExceptionHandler::exceptionHandler() cannot be static in /Users/dirk/Sites/piwik-02/core/ExceptionHandler.php on line 65
Diffstat (limited to 'core/ExceptionHandler.php')
-rw-r--r-- | core/ExceptionHandler.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/ExceptionHandler.php b/core/ExceptionHandler.php index 9c08ecc3ce..c0a8d401b7 100644 --- a/core/ExceptionHandler.php +++ b/core/ExceptionHandler.php @@ -32,7 +32,7 @@ class ExceptionHandler Piwik::addAction('Log.formatDatabaseMessage', array('\\Piwik\\ExceptionHandler', 'formatFileAndDBLogMessage')); Piwik::addAction('Log.formatScreenMessage', array('\\Piwik\\ExceptionHandler', 'formatScreenMessage')); - set_exception_handler(array('\\Piwik\\ExceptionHandler', 'exceptionHandler')); + set_exception_handler(array('\\Piwik\\ExceptionHandler', 'logException')); } public static function formatFileAndDBLogMessage(&$message, $level, $tag, $datetime, $log) @@ -58,7 +58,7 @@ class ExceptionHandler } } - public static function exceptionHandler(\Exception $exception) + public static function logException(\Exception $exception) { Log::error($exception); } |