diff options
author | Thomas Steur <tsteur@users.noreply.github.com> | 2020-10-06 21:58:22 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-06 21:58:22 +0300 |
commit | 67930f0ee8779a3e2f23010152f068e7c149911a (patch) | |
tree | 62a10b1f12589092cd7bbc62c6b2e2b2faf8ae8e | |
parent | aed2ca15a8174fb73edfd502f1a792afaa477db1 (diff) |
Format tracker debug output (#16531)
When tracker debug is enabled.
-rw-r--r-- | core/Tracker.php | 3 |
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(); } |