mirror of
https://github.com/friendica/friendica
synced 2025-04-25 23:10: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
|
@ -19,7 +19,7 @@ class Friendica extends BaseModule
|
|||
public static function content(array $parameters = [])
|
||||
{
|
||||
$app = DI::app();
|
||||
$config = $app->getConfig();
|
||||
$config = DI::config();
|
||||
|
||||
$visibleAddonList = Addon::getVisibleList();
|
||||
if (!empty($visibleAddonList)) {
|
||||
|
@ -98,7 +98,7 @@ class Friendica extends BaseModule
|
|||
return;
|
||||
}
|
||||
|
||||
$config = $app->getConfig();
|
||||
$config = DI::config();
|
||||
|
||||
$register_policies = [
|
||||
Register::CLOSED => 'REGISTER_CLOSED',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue