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
|
@ -59,10 +59,10 @@ function irc_addon_settings_post(&$a, &$b) {
|
|||
|
||||
if(!empty($_POST['irc-submit'])) {
|
||||
if (isset($_POST['autochans'])) {
|
||||
PConfig::set(local_user(), 'irc', 'autochans', trim(($_POST['autochans'])));
|
||||
DI::pConfig()->set(local_user(), 'irc', 'autochans', trim(($_POST['autochans'])));
|
||||
}
|
||||
if (isset($_POST['sitechats'])) {
|
||||
PConfig::set(local_user(), 'irc', 'sitechats', trim($_POST['sitechats']));
|
||||
DI::pConfig()->set(local_user(), 'irc', 'sitechats', trim($_POST['sitechats']));
|
||||
}
|
||||
/* upid pop-up thing */
|
||||
info(L10n::t('IRC settings saved.') . EOL);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue