mirror of
https://github.com/friendica/friendica
synced 2025-04-22 22:30:11 +00:00
Merge pull request #10693 from nupplaphil/feat/config_dir
Add the possibility to use a different configuration directory
This commit is contained in:
commit
d78661817e
13 changed files with 157 additions and 42 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());
|
||||
$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