mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-09 18:08:49 +00:00
Move PConfig::get() to DI::pConfig()->get()
This commit is contained in:
parent
2a35176588
commit
ea3a9052d8
42 changed files with 414 additions and 412 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue