mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-12 19:38: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
|
@ -79,7 +79,7 @@ function blockem_addon_settings_post(App $a, array &$b)
|
|||
}
|
||||
|
||||
if (!empty($_POST['blockem-submit'])) {
|
||||
PConfig::set(local_user(), 'blockem', 'words', trim($_POST['blockem-words']));
|
||||
DI::pConfig()->set(local_user(), 'blockem', 'words', trim($_POST['blockem-words']));
|
||||
info(L10n::t('BLOCKEM Settings saved.') . EOL);
|
||||
}
|
||||
}
|
||||
|
@ -242,7 +242,7 @@ function blockem_init(App $a)
|
|||
$words = implode(',', $newarr);
|
||||
}
|
||||
|
||||
PConfig::set(local_user(), 'blockem', 'words', $words);
|
||||
DI::pConfig()->set(local_user(), 'blockem', 'words', $words);
|
||||
info(L10n::t('blockem settings updated') . EOL);
|
||||
exit();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue