Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormatt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105>2008-02-03 21:11:24 +0300
committermatt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105>2008-02-03 21:11:24 +0300
commit2591f954bb4686b6184561d481a727b843511f37 (patch)
treed3bebcd05be76fc0fa000b38a8414d7431f99b67 /piwik.php
parentef20c5c926bfd8a47b42de246dff32350d0ee680 (diff)
- fixing piwik.php when no plugins LogStats to load
Diffstat (limited to 'piwik.php')
-rw-r--r--piwik.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/piwik.php b/piwik.php
index d0ae53d7c5..7859c14cbe 100644
--- a/piwik.php
+++ b/piwik.php
@@ -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;