diff options
author | mattab <matthieu.aubry@gmail.com> | 2014-02-20 10:12:37 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2014-02-20 10:12:37 +0400 |
commit | 2ce3ca4de743c079c581720a2b6b45ea12b266df (patch) | |
tree | d472f88a3e5a2fac10b554f8198a994eb200c4eb | |
parent | 8082e284e5930dee4930b61a44d7febfbde0b44a (diff) |
Fix bug when config directory returns an error
-rw-r--r-- | core/Filechecks.php | 4 |
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); |