mirror of
https://github.com/friendica/friendica
synced 2025-04-25 21:50:12 +00:00
Move path determination logic into the ConfigFactory
This commit is contained in:
parent
5702944116
commit
27e4586597
10 changed files with 114 additions and 55 deletions
|
@ -29,6 +29,7 @@ use Friendica\Core\Update;
|
|||
use Friendica\Database\DBA;
|
||||
use Friendica\Database\DBStructure;
|
||||
use Friendica\DI;
|
||||
use Friendica\Factory\ConfigFactory;
|
||||
use Friendica\Model\Register;
|
||||
use Friendica\Module\BaseAdmin;
|
||||
use Friendica\Network\HTTPException\InternalServerErrorException;
|
||||
|
@ -151,7 +152,7 @@ class Summary extends BaseAdmin
|
|||
}
|
||||
|
||||
// check legacy basepath settings
|
||||
$configLoader = new ConfigFileLoader($a->getBasePath(), $_SERVER);
|
||||
$configLoader = (new ConfigFactory())->createConfigFileLoader($a->getBasePath(), $_SERVER);
|
||||
$configCache = new Cache();
|
||||
$configLoader->setupCache($configCache);
|
||||
$confBasepath = $configCache->get('system', 'basepath');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue