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
|
@ -103,10 +103,10 @@ function nsfw_addon_settings_post(&$a, &$b)
|
|||
}
|
||||
|
||||
if (!empty($_POST['nsfw-submit'])) {
|
||||
PConfig::set(local_user(), 'nsfw', 'words', trim($_POST['nsfw-words']));
|
||||
DI::pConfig()->set(local_user(), 'nsfw', 'words', trim($_POST['nsfw-words']));
|
||||
$enable = (!empty($_POST['nsfw-enable']) ? intval($_POST['nsfw-enable']) : 0);
|
||||
$disable = 1 - $enable;
|
||||
PConfig::set(local_user(), 'nsfw', 'disable', $disable);
|
||||
DI::pConfig()->set(local_user(), 'nsfw', 'disable', $disable);
|
||||
info(L10n::t('NSFW Settings saved.') . EOL);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue