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

@ -46,7 +46,7 @@ function blockem_addon_settings (App $a, &$s)
/* Add our stylesheet to the page so we can make our settings look nice */
DI::page()['htmlhead'] .= '<link rel="stylesheet" type="text/css" href="' . DI::baseUrl()->get() . '/addon/blockem/blockem.css' . '" media="all" />' . "\r\n";
$words = PConfig::get(local_user(), 'blockem', 'words');
$words = DI::pConfig()->get(local_user(), 'blockem', 'words');
if (!$words) {
$words = '';
@ -86,7 +86,7 @@ function blockem_addon_settings_post(App $a, array &$b)
function blockem_enotify_store(App $a, array &$b)
{
$words = PConfig::get($b['uid'], 'blockem', 'words');
$words = DI::pConfig()->get($b['uid'], 'blockem', 'words');
if ($words) {
$arr = explode(',', $words);
@ -123,7 +123,7 @@ function blockem_prepare_body_content_filter(App $a, array &$hook_data)
$profiles_string = null;
if (local_user()) {
$profiles_string = PConfig::get(local_user(), 'blockem', 'words');
$profiles_string = DI::pConfig()->get(local_user(), 'blockem', 'words');
}
if ($profiles_string) {
@ -159,7 +159,7 @@ function blockem_conversation_start(App $a, array &$b)
return;
}
$words = PConfig::get(local_user(), 'blockem', 'words');
$words = DI::pConfig()->get(local_user(), 'blockem', 'words');
if ($words) {
$a->data['blockem'] = explode(',', $words);
@ -217,7 +217,7 @@ function blockem_init(App $a)
return;
}
$words = PConfig::get(local_user(), 'blockem', 'words');
$words = DI::pConfig()->get(local_user(), 'blockem', 'words');
if (array_key_exists('block', $_GET) && $_GET['block']) {
if (strlen($words)) {