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>2014-05-08 06:25:59 +0400
committermattab <matthieu.aubry@gmail.com>2014-05-08 06:25:59 +0400
commitb71c38a5995aa407084ca0e78deb87d243847976 (patch)
tree6f6609f8cb52f71035af08be0d5bb9ca3afed19e /core/Config.php
parent89cd955006d4ff758b133c1f22344794622ff7f6 (diff)
When Piwik is not installed yet, and we're installing it via console, make sure tmp/ folders are using hostname
Diffstat (limited to 'core/Config.php')
-rw-r--r--core/Config.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/Config.php b/core/Config.php
index 60bf3fbb0d..d08e89ce4c 100644
--- a/core/Config.php
+++ b/core/Config.php
@@ -234,9 +234,10 @@ class Config extends Singleton
return false;
}
- protected static function getHostname()
+ public static function getHostname()
{
- $host = Url::getHost($checkIfTrusted = false); // Check trusted requires config file which is not ready yet
+ // Check trusted requires config file which is not ready yet
+ $host = Url::getHost($checkIfTrusted = false);
return $host;
}