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-05-07 01:01:04 +0400
committermatt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105>2008-05-07 01:01:04 +0400
commit69f3812efebec1a82449949b4aa064243eb23259 (patch)
tree7088434b3b7dbd3bfbbbb8a39c73bc15b482e2c9 /piwik.php
parent85544a885bccdfa9ae81b7a623f0946a3180ffc9 (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.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/piwik.php b/piwik.php
index 2648c62df6..9bc839f0d6 100644
--- a/piwik.php
+++ b/piwik.php
@@ -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);