diff options
author | Markus <iMarkus@users.noreply.github.com> | 2017-12-15 07:25:40 +0300 |
---|---|---|
committer | Matthieu Aubry <mattab@users.noreply.github.com> | 2017-12-15 07:25:40 +0300 |
commit | e78d5c9bfdaaf0a1c58d2f24b2a79fc918947364 (patch) | |
tree | 0689a285ca587cf88a112c033db1bf99f6c1a7db /config/global.php | |
parent | d647d5c99ea4cf46bfbb699ae67ae84ba0982af7 (diff) |
Ability to customise the piwik/tmp directory path in config/config.ini.php file (#12189)
Diffstat (limited to 'config/global.php')
-rw-r--r-- | config/global.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/config/global.php b/config/global.php index 00c2d116aa..f7ac26c544 100644 --- a/config/global.php +++ b/config/global.php @@ -4,6 +4,7 @@ use Interop\Container\ContainerInterface; use Interop\Container\Exception\NotFoundException; use Piwik\Cache\Eager; use Piwik\SettingsServer; +use Piwik\Config; return array( @@ -19,8 +20,10 @@ return array( } else { $instanceId = ''; } - - return $root . '/tmp' . $instanceId; + + $tmp = Config::getInstance()->General['tmp_path']; + + return $root . $tmp . $instanceId; }, 'path.cache' => DI\string('{path.tmp}/cache/tracker/'), |