Move Config::set() to DI::config()->set()

This commit is contained in:
nupplaPhil 2020-01-19 21:21:53 +01:00
parent 6c36fd9e01
commit 3411ced833
No known key found for this signature in database
GPG key ID: D8365C3D36B77D90
29 changed files with 213 additions and 229 deletions

View file

@ -27,7 +27,7 @@ class Server extends BaseAdminModule
'domain' => Strings::escapeTags(trim($_POST['newentry_domain'])),
'reason' => Strings::escapeTags(trim($_POST['newentry_reason']))
];
Config::set('system', 'blocklist', $blocklist);
DI::config()->set('system', 'blocklist', $blocklist);
info(DI::l10n()->t('Server domain pattern added to blocklist.') . EOL);
} else {
// Edit the entries from blocklist
@ -43,7 +43,7 @@ class Server extends BaseAdminModule
];
}
}
Config::set('system', 'blocklist', $blocklist);
DI::config()->set('system', 'blocklist', $blocklist);
info(DI::l10n()->t('Site blocklist updated.') . EOL);
}