From a8a2f9bc7ea3482c86fc5be9ca0e27ae96e94f6e Mon Sep 17 00:00:00 2001 From: mattab Date: Mon, 18 Nov 2013 12:03:08 +1300 Subject: Refs #4310 --- core/Profiler.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'core/Profiler.php') 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() -- cgit v1.2.3