diff options
author | robocoder <anthon.pang@gmail.com> | 2009-06-16 09:02:21 +0400 |
---|---|---|
committer | robocoder <anthon.pang@gmail.com> | 2009-06-16 09:02:21 +0400 |
commit | 2224157f543c7c05ff100f46c091680a6dd7c823 (patch) | |
tree | e7e92d71b1c9541f9460823149c8f19efd8d4ae2 /core/ExceptionHandler.php | |
parent | ad3a3de12e49fb5b8c949274b98dbaf91a053ca3 (diff) |
refs #803 - Log/Exception contains classes that won't be found by
autoloader's discovery algorithm; FrontController.php and Common.php
use classes with global scope functions (i.e., this needs to be
refactored)
git-svn-id: http://dev.piwik.org/svn/trunk@1232 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'core/ExceptionHandler.php')
-rw-r--r-- | core/ExceptionHandler.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/ExceptionHandler.php b/core/ExceptionHandler.php index 0583934b4d..c5b1bd38b5 100644 --- a/core/ExceptionHandler.php +++ b/core/ExceptionHandler.php @@ -21,6 +21,8 @@ function Piwik_ExceptionHandler(Exception $exception) } catch(Exception $e) { // case when the exception is raised before the logger being ready // we handle the exception a la mano, but using the Logger formatting properties + require_once "Log/Exception.php"; + $event = array(); $event['errno'] = $exception->getCode(); $event['message'] = $exception->getMessage(); |