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:
authorrobocoder <anthon.pang@gmail.com>2010-10-09 10:20:16 +0400
committerrobocoder <anthon.pang@gmail.com>2010-10-09 10:20:16 +0400
commit9bed457d1fe855b36e2bfde6a563e8a710296352 (patch)
tree4ba5a2d9f0b3c00e2d4f3064079311929ee83a58 /piwik.php
parent336e7bca742c956e793d8de6cfd93c4fa5f17c26 (diff)
fixes #1760, fixes #1573
git-svn-id: http://dev.piwik.org/svn/trunk@3240 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'piwik.php')
-rw-r--r--piwik.php19
1 files changed, 15 insertions, 4 deletions
diff --git a/piwik.php b/piwik.php
index 9f6bb7ec55..04e5028afb 100644
--- a/piwik.php
+++ b/piwik.php
@@ -69,8 +69,19 @@ if($GLOBALS['PIWIK_TRACKER_DEBUG'] === true)
if(!defined('PIWIK_ENABLE_TRACKING') || PIWIK_ENABLE_TRACKING)
{
- $process = new Piwik_Tracker();
- $process->main();
- ob_end_flush();
- printDebug($_COOKIE);
+ try {
+ $process = new Piwik_Tracker();
+ $process->main();
+ ob_end_flush();
+ printDebug($_COOKIE);
+ } catch (Exception $e) {
+ if($GLOBALS['PIWIK_TRACKER_DEBUG'] === true)
+ {
+ throw $e;
+ }
+ else
+ {
+ error_log($e->getMessage(), 0);
+ }
+ }
}