mirror of
https://github.com/friendica/friendica
synced 2025-04-25 21:50:12 +00:00
Refactor dynamic App::getConfig() to static DI::config()
This commit is contained in:
parent
2bb9e46be3
commit
fceb4f3823
21 changed files with 38 additions and 66 deletions
|
@ -115,7 +115,7 @@ class Summary extends BaseAdminModule
|
|||
$configCache = new Config\Cache\ConfigCache();
|
||||
$configLoader->setupCache($configCache);
|
||||
$confBasepath = $configCache->get('system', 'basepath');
|
||||
$currBasepath = $a->getConfig()->get('system', 'basepath');
|
||||
$currBasepath = DI::config()->get('system', 'basepath');
|
||||
if ($confBasepath !== $currBasepath || !is_dir($currBasepath)) {
|
||||
if (is_dir($confBasepath) && Config::set('system', 'basepath', $confBasepath)) {
|
||||
$a->getLogger()->info('Friendica\'s system.basepath was updated successfully.', [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue