diff options
Diffstat (limited to 'core/Profiler.php')
-rw-r--r-- | core/Profiler.php | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/core/Profiler.php b/core/Profiler.php index ec48788471..731a194fc5 100644 --- a/core/Profiler.php +++ b/core/Profiler.php @@ -201,7 +201,7 @@ class Profiler require_once $path; - $currentGitBranch = self::getCurrentGitBranch(); + $currentGitBranch = SettingsPiwik::getCurrentGitBranch(); $profilerNamespace = "piwik"; if($currentGitBranch != 'master') { $profilerNamespace .= "." . $currentGitBranch; @@ -260,15 +260,6 @@ class Profiler return $array; } - private static function getCurrentGitBranch() - { - $firstLineOfGitHead = file(PIWIK_INCLUDE_PATH . '/.git/HEAD'); - $firstLineOfGitHead = $firstLineOfGitHead[0]; - $parts = explode("/", $firstLineOfGitHead); - $currentGitBranch = trim($parts[2]); - return $currentGitBranch; - } - /** * @return string */ |