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-02-20 10:12:37 +0400
committermattab <matthieu.aubry@gmail.com>2014-02-20 10:12:37 +0400
commit2ce3ca4de743c079c581720a2b6b45ea12b266df (patch)
treed472f88a3e5a2fac10b554f8198a994eb200c4eb /core/Filechecks.php
parent8082e284e5930dee4930b61a44d7febfbde0b44a (diff)
Fix bug when config directory returns an error
Diffstat (limited to 'core/Filechecks.php')
-rw-r--r--core/Filechecks.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/Filechecks.php b/core/Filechecks.php
index 56bf395acb..7a82db5b2b 100644
--- a/core/Filechecks.php
+++ b/core/Filechecks.php
@@ -43,7 +43,9 @@ class Filechecks
$directoryToCheck = PIWIK_USER_PATH . $directoryToCheck;
}
- $directoryToCheck = SettingsPiwik::rewriteTmpPathWithHostname($directoryToCheck);
+ if(strpos($directoryToCheck, '/tmp/') !== false) {
+ $directoryToCheck = SettingsPiwik::rewriteTmpPathWithHostname($directoryToCheck);
+ }
Filesystem::mkdir($directoryToCheck);