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:
Diffstat (limited to 'core/Profiler.php')
-rw-r--r--core/Profiler.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/core/Profiler.php b/core/Profiler.php
index c4f3c6e7d4..486b6ce7da 100644
--- a/core/Profiler.php
+++ b/core/Profiler.php
@@ -240,11 +240,12 @@ class Profiler
xhprof_enable(XHPROF_FLAGS_CPU + XHPROF_FLAGS_MEMORY);
- if($mainRun) {
+ $baseUrlStored = "";
+ if ($mainRun) {
self::setProfilingRunIds(array());
- }
- $baseUrlStored = SettingsPiwik::getPiwikUrl();
+ $baseUrlStored = SettingsPiwik::getPiwikUrl();
+ }
register_shutdown_function(function () use($profilerNamespace, $mainRun, $baseUrlStored) {
$xhprofData = xhprof_disable();