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:
authorThomas Steur <tsteur@users.noreply.github.com>2020-10-06 21:58:22 +0300
committerGitHub <noreply@github.com>2020-10-06 21:58:22 +0300
commit67930f0ee8779a3e2f23010152f068e7c149911a (patch)
tree62a10b1f12589092cd7bbc62c6b2e2b2faf8ae8e
parentaed2ca15a8174fb73edfd502f1a792afaa477db1 (diff)
Format tracker debug output (#16531)
When tracker debug is enabled.
-rw-r--r--core/Tracker.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/Tracker.php b/core/Tracker.php
index da77845796..a1d0695fd3 100644
--- a/core/Tracker.php
+++ b/core/Tracker.php
@@ -77,6 +77,9 @@ class Tracker
if (empty($GLOBALS['PIWIK_TRACKER_DEBUG'])) {
$GLOBALS['PIWIK_TRACKER_DEBUG'] = self::isDebugEnabled();
}
+ if (!empty($GLOBALS['PIWIK_TRACKER_DEBUG']) && !Common::isPhpCliMode()) {
+ Common::sendHeader('Content-Type: text/plain');
+ }
PluginManager::getInstance()->loadTrackerPlugins();
}