Move PConfig::get() to DI::pConfig()->get()
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user