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

This commit is contained in:
nupplaPhil 2020-01-18 16:50:56 +01:00
parent 2a35176588
commit ea3a9052d8
No known key found for this signature in database
GPG key ID: D8365C3D36B77D90
42 changed files with 414 additions and 412 deletions

View file

@ -40,7 +40,7 @@ function superblock_addon_settings(&$a, &$s)
DI::page()['htmlhead'] .= '<link rel="stylesheet" type="text/css" href="' . DI::baseUrl()->get() . '/addon/superblock/superblock.css' . '" media="all" />' . "\r\n";
$words = PConfig::get(local_user(), 'system', 'blocked');
$words = DI::pConfig()->get(local_user(), 'system', 'blocked');
if (!$words) {
$words = '';
}
@ -76,7 +76,7 @@ function superblock_addon_settings_post(&$a, &$b)
function superblock_enotify_store(&$a,&$b) {
$words = PConfig::get($b['uid'], 'system', 'blocked');
$words = DI::pConfig()->get($b['uid'], 'system', 'blocked');
if ($words) {
$arr = explode(',', $words);
} else {
@ -108,7 +108,7 @@ function superblock_conversation_start(&$a, &$b)
return;
}
$words = PConfig::get(local_user(), 'system', 'blocked');
$words = DI::pConfig()->get(local_user(), 'system', 'blocked');
if ($words) {
$a->data['superblock'] = explode(',', $words);
}
@ -155,7 +155,7 @@ function superblock_init(&$a)
return;
}
$words = PConfig::get(local_user(), 'system', 'blocked');
$words = DI::pConfig()->get(local_user(), 'system', 'blocked');
if (array_key_exists('block', $_GET) && $_GET['block']) {
if (strlen($words))