diff options
author | robocoder <anthon.pang@gmail.com> | 2010-10-09 10:20:16 +0400 |
---|---|---|
committer | robocoder <anthon.pang@gmail.com> | 2010-10-09 10:20:16 +0400 |
commit | 9bed457d1fe855b36e2bfde6a563e8a710296352 (patch) | |
tree | 4ba5a2d9f0b3c00e2d4f3064079311929ee83a58 /index.php | |
parent | 336e7bca742c956e793d8de6cfd93c4fa5f17c26 (diff) |
fixes #1760, fixes #1573
git-svn-id: http://dev.piwik.org/svn/trunk@3240 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 17 |
1 files changed, 14 insertions, 3 deletions
@@ -55,7 +55,18 @@ if(!defined('PIWIK_ENABLE_ERROR_HANDLER') || PIWIK_ENABLE_ERROR_HANDLER) if(!defined('PIWIK_ENABLE_DISPATCH') || PIWIK_ENABLE_DISPATCH) { - $controller = Piwik_FrontController::getInstance(); - $controller->init(); - $controller->dispatch(); + try { + $controller = Piwik_FrontController::getInstance(); + $controller->init(); + $controller->dispatch(); + } catch (Exception $e) { + if(!defined('PIWIK_ENABLE_ERROR_HANDLER') || PIWIK_ENABLE_ERROR_HANDLER) + { + throw $e; + } + else + { + error_log($e->getMessage(), 0); + } + } } |