mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-09 18:08:49 +00:00
Move PConfig::set() to DI::pConfig()->set()
This commit is contained in:
parent
ea3a9052d8
commit
febc835a2d
42 changed files with 185 additions and 185 deletions
|
@ -69,7 +69,7 @@ function superblock_addon_settings_post(&$a, &$b)
|
|||
}
|
||||
|
||||
if (!empty($_POST['superblock-submit'])) {
|
||||
PConfig::set(local_user(), 'system', 'blocked',trim($_POST['superblock-words']));
|
||||
DI::pConfig()->set(local_user(), 'system', 'blocked',trim($_POST['superblock-words']));
|
||||
info(L10n::t('SUPERBLOCK Settings saved.') . EOL);
|
||||
}
|
||||
}
|
||||
|
@ -163,7 +163,7 @@ function superblock_init(&$a)
|
|||
$words .= trim($_GET['block']);
|
||||
}
|
||||
|
||||
PConfig::set(local_user(), 'system', 'blocked', $words);
|
||||
DI::pConfig()->set(local_user(), 'system', 'blocked', $words);
|
||||
info(L10n::t('superblock settings updated') . EOL );
|
||||
exit();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue