1
1
Fork 0

use cache for basepath

This commit is contained in:
Philipp Holzer 2019-02-18 01:15:55 +01:00
parent 218e41a818
commit 95deff1685
No known key found for this signature in database
GPG key ID: 517BE60E2CE5C8A5

View file

@ -219,7 +219,7 @@ class App
$this->logger = $logger; $this->logger = $logger;
$this->config = $config; $this->config = $config;
$this->profiler = $profiler; $this->profiler = $profiler;
$this->basePath = $this->config->get('system', 'basepath'); $this->basePath = $this->config->getCache()->get('system', 'basepath');
if (!Core\System::isDirectoryUsable($this->basePath, false)) { if (!Core\System::isDirectoryUsable($this->basePath, false)) {
throw new Exception('Basepath \'' . $this->basePath . '\' isn\'t usable.'); throw new Exception('Basepath \'' . $this->basePath . '\' isn\'t usable.');