Functions moved to Strings class
implement functions from Strings class
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
use Friendica\Core\Addon;
|
||||
use Friendica\Core\L10n;
|
||||
use Friendica\Core\PConfig;
|
||||
use Friendica\Util\Strings;
|
||||
|
||||
function superblock_install()
|
||||
{
|
||||
@@ -88,7 +89,7 @@ function superblock_enotify_store(&$a,&$b) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (link_compare($b['url'], $word)) {
|
||||
if (Strings::compareLink($b['url'], $word)) {
|
||||
$found = true;
|
||||
break;
|
||||
}
|
||||
@@ -134,7 +135,7 @@ function superblock_item_photo_menu(&$a, &$b)
|
||||
$author = $b['item']['author-link'];
|
||||
if (!empty($a->data['superblock'])) {
|
||||
foreach ($a->data['superblock'] as $bloke) {
|
||||
if (link_compare($bloke, $author)) {
|
||||
if (Strings::compareLink($bloke, $author)) {
|
||||
$blocked = true;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user