diff options
author | matt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2008-02-03 21:11:24 +0300 |
---|---|---|
committer | matt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2008-02-03 21:11:24 +0300 |
commit | 2591f954bb4686b6184561d481a727b843511f37 (patch) | |
tree | d3bebcd05be76fc0fa000b38a8414d7431f99b67 /piwik.php | |
parent | ef20c5c926bfd8a47b42de246dff32350d0ee680 (diff) |
- fixing piwik.php when no plugins LogStats to load
Diffstat (limited to 'piwik.php')
-rw-r--r-- | piwik.php | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -51,6 +51,18 @@ require_once "LogStats/Visit.php"; $GLOBALS['DEBUGPIWIK'] = false; + +if($GLOBALS['DEBUGPIWIK'] === true) +{ + date_default_timezone_set(date_default_timezone_get()); + /** + * Error / exception handling functions + */ + require_once PIWIK_INCLUDE_PATH . "/modules/ErrorHandler.php"; + require_once PIWIK_INCLUDE_PATH . "/modules/ExceptionHandler.php"; + set_error_handler('Piwik_ErrorHandler'); + set_exception_handler('Piwik_ExceptionHandler'); +} ob_start(); printDebug($_GET); $process = new Piwik_LogStats; |