mirror of
https://github.com/friendica/friendica
synced 2025-04-25 21:50:12 +00:00
Move Config::get() to DI::config()->get()
This commit is contained in:
parent
5d294e8be8
commit
6c36fd9e01
126 changed files with 581 additions and 596 deletions
|
@ -22,7 +22,7 @@ class Server extends BaseAdminModule
|
|||
|
||||
if (!empty($_POST['page_blocklist_save'])) {
|
||||
// Add new item to blocklist
|
||||
$blocklist = Config::get('system', 'blocklist');
|
||||
$blocklist = DI::config()->get('system', 'blocklist');
|
||||
$blocklist[] = [
|
||||
'domain' => Strings::escapeTags(trim($_POST['newentry_domain'])),
|
||||
'reason' => Strings::escapeTags(trim($_POST['newentry_reason']))
|
||||
|
@ -54,7 +54,7 @@ class Server extends BaseAdminModule
|
|||
{
|
||||
parent::content($parameters);
|
||||
|
||||
$blocklist = Config::get('system', 'blocklist');
|
||||
$blocklist = DI::config()->get('system', 'blocklist');
|
||||
$blocklistform = [];
|
||||
if (is_array($blocklist)) {
|
||||
foreach ($blocklist as $id => $b) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue