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 <thomas.steur@googlemail.com>2014-11-14 02:34:21 +0300
committerThomas Steur <thomas.steur@googlemail.com>2014-11-14 02:35:56 +0300
commit1430870ba9b7167311d9bfc19bb6195227272c79 (patch)
treeebf9e7d3730f632d405254779a524be58f1ee950 /core/Tracker.php
parent33b4f8f6d119ee98f50e89b06e6ef9a1e467aa64 (diff)
refs #6661 undoing this change to hopefully avoid some merge problems
Diffstat (limited to 'core/Tracker.php')
-rw-r--r--core/Tracker.php40
1 files changed, 0 insertions, 40 deletions
diff --git a/core/Tracker.php b/core/Tracker.php
index e0b7e78e3d..6ecad4b3b5 100644
--- a/core/Tracker.php
+++ b/core/Tracker.php
@@ -943,44 +943,4 @@ class Tracker
return array_unique($siteIds);
}
- /**
- * @param $e
- * @param $authenticated
- */
- private function outputException($e, $authenticated)
- {
- if ($this->usingBulkTracking) {
- // when doing bulk tracking we return JSON so the caller will know how many succeeded
- $result = array(
- 'status' => 'error',
- 'tracked' => $this->countOfLoggedRequests
- );
- // send error when in debug mode or when authenticated (which happens when doing log importing,
- if ((isset($GLOBALS['PIWIK_TRACKER_DEBUG']) && $GLOBALS['PIWIK_TRACKER_DEBUG'])
- || $authenticated
- ) {
- $result['message'] = $this->getMessageFromException($e);
- }
- Common::sendHeader('Content-Type: application/json');
- echo Common::json_encode($result);
- return;
- }
-
- if (isset($GLOBALS['PIWIK_TRACKER_DEBUG']) && $GLOBALS['PIWIK_TRACKER_DEBUG']) {
- Common::sendHeader('Content-Type: text/html; charset=utf-8');
- $trailer = '<span style="color: #888888">Backtrace:<br /><pre>' . $e->getTraceAsString() . '</pre></span>';
- $headerPage = file_get_contents(PIWIK_INCLUDE_PATH . '/plugins/Morpheus/templates/simpleLayoutHeader.tpl');
- $footerPage = file_get_contents(PIWIK_INCLUDE_PATH . '/plugins/Morpheus/templates/simpleLayoutFooter.tpl');
- $headerPage = str_replace('{$HTML_TITLE}', 'Piwik &rsaquo; Error', $headerPage);
-
- echo $headerPage . '<p>' . $this->getMessageFromException($e) . '</p>' . $trailer . $footerPage;
- } // If not debug, but running authenticated (eg. during log import) then we display raw errors
- elseif ($authenticated) {
- Common::sendHeader('Content-Type: text/html; charset=utf-8');
- echo $this->getMessageFromException($e);
- } else {
- $this->outputTransparentGif();
- }
- }
-
}