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:
authormattab <matthieu.aubry@gmail.com>2013-11-18 03:03:08 +0400
committermattab <matthieu.aubry@gmail.com>2013-11-18 03:03:08 +0400
commita8a2f9bc7ea3482c86fc5be9ca0e27ae96e94f6e (patch)
tree277630d42a8eb5acf97a1a91efd196eacc2938b1 /core/Profiler.php
parent18a7ecabaff1882e77c48c37b01b3583f5f4350a (diff)
Refs #4310
Diffstat (limited to 'core/Profiler.php')
-rw-r--r--core/Profiler.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/Profiler.php b/core/Profiler.php
index 7a0f2b0d39..ec48788471 100644
--- a/core/Profiler.php
+++ b/core/Profiler.php
@@ -227,7 +227,7 @@ class Profiler
if($mainRun) {
$runIds = implode(',', $runs);
$out = "\n\nHere is the profiler URL aggregating all runs triggered from this process: ";
- $baseUrl = "http://" . $_SERVER['HTTP_HOST'] . "/" . $_SERVER['REQUEST_URI'];
+ $baseUrl = "http://" . @$_SERVER['HTTP_HOST'] . "/" . @$_SERVER['REQUEST_URI'];
$baseUrlStored = SettingsPiwik::getPiwikUrl();
if(strlen($baseUrlStored) > strlen($baseUrl)) {
$baseUrl = $baseUrlStored;
@@ -237,7 +237,7 @@ class Profiler
$out .= $baseUrl . "$runIds\n\n";
$out .= "Main run profile:";
$out .= $baseUrl . "$runId\n\n";
- Log::info($out);
+ echo ($out);
} else {
self::setProfilingRunIds($runs);
}
@@ -247,7 +247,7 @@ class Profiler
private static function setProfilingRunIds($ids)
{
file_put_contents( self::getPathToXHProfRunIds(), json_encode($ids) );
- chmod(self::getPathToXHProfRunIds(), 0777);
+ @chmod(self::getPathToXHProfRunIds(), 0777);
}
private static function getProfilingRunIds()