diff options
author | Thomas Steur <thomas.steur@googlemail.com> | 2014-02-12 05:55:18 +0400 |
---|---|---|
committer | Thomas Steur <thomas.steur@googlemail.com> | 2014-02-12 05:55:18 +0400 |
commit | 3510045fcb484edec054ad4b1c1940c952e88958 (patch) | |
tree | 4e56507db94228a2abb5ac86c749924bd88abe56 /core/CliMulti.php | |
parent | a9a71ce29eda92aaf2044adb96b89a7fee07cab4 (diff) |
refs #4610 make sure to rewrite tmp path if needed
Diffstat (limited to 'core/CliMulti.php')
-rw-r--r-- | core/CliMulti.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/core/CliMulti.php b/core/CliMulti.php index e88b24311e..023f4f1efa 100644 --- a/core/CliMulti.php +++ b/core/CliMulti.php @@ -173,7 +173,7 @@ class CliMulti { { $timeOneWeekAgo = strtotime('-1 week'); - foreach (_glob(PIWIK_INCLUDE_PATH . '/tmp/climulti/*') as $file) { + foreach (_glob(self::getTmpPath() . '/*') as $file) { $timeLastModified = filemtime($file); if ($timeOneWeekAgo > $timeLastModified) { @@ -182,6 +182,12 @@ class CliMulti { } } + public static function getTmpPath() + { + $dir = PIWIK_INCLUDE_PATH . '/tmp/climulti'; + return SettingsPiwik::rewriteTmpPathWithHostname($dir); + } + private function findPhpBinary() { if (defined('PHP_BINARY')) { |