Move PConfig::set() to DI::pConfig()->set()

This commit is contained in:
nupplaPhil 2020-01-18 16:54:49 +01:00
parent ea3a9052d8
commit febc835a2d
No known key found for this signature in database
GPG key ID: D8365C3D36B77D90
42 changed files with 185 additions and 185 deletions

View file

@ -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();
}