diff options
author | matt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2008-05-07 01:01:04 +0400 |
---|---|---|
committer | matt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2008-05-07 01:01:04 +0400 |
commit | 69f3812efebec1a82449949b4aa064243eb23259 (patch) | |
tree | 7088434b3b7dbd3bfbbbb8a39c73bc15b482e2c9 /piwik.php | |
parent | 85544a885bccdfa9ae81b7a623f0946a3180ffc9 (diff) |
- when database is unavailable, piwik.php display a gif 1*1
- fixed profiling in piwik.php. Enable profiling by turning DEBUG = true in /piwik.php
Diffstat (limited to 'piwik.php')
-rw-r--r-- | piwik.php | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -46,7 +46,7 @@ require_once "Cookie.php"; require_once "LogStats/Db.php"; require_once "LogStats/Visit.php"; -$GLOBALS['DEBUGPIWIK'] = false; +$GLOBALS['DEBUGPIWIK'] = false; if($GLOBALS['DEBUGPIWIK'] === true) { @@ -56,11 +56,15 @@ if($GLOBALS['DEBUGPIWIK'] === true) set_error_handler('Piwik_ErrorHandler'); set_exception_handler('Piwik_ExceptionHandler'); printDebug($_GET); + Piwik_LogStats_Db::enableProfiling(); + Piwik::createConfigObject(); + Piwik::createLogObject(); } ob_start(); $process = new Piwik_LogStats; $process->main(); ob_end_flush(); + printDebug($_COOKIE); |