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:
authorThomas Steur <thomas.steur@googlemail.com>2014-02-12 05:55:18 +0400
committerThomas Steur <thomas.steur@googlemail.com>2014-02-12 05:55:18 +0400
commit3510045fcb484edec054ad4b1c1940c952e88958 (patch)
tree4e56507db94228a2abb5ac86c749924bd88abe56 /core/CliMulti.php
parenta9a71ce29eda92aaf2044adb96b89a7fee07cab4 (diff)
refs #4610 make sure to rewrite tmp path if needed
Diffstat (limited to 'core/CliMulti.php')
-rw-r--r--core/CliMulti.php8
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')) {