Functions moved to Strings class

implement functions from Strings class
This commit is contained in:
Adam Magness 2018-11-08 11:45:19 -05:00
parent 1746d0814d
commit 1ac32c622e
22 changed files with 80 additions and 58 deletions

View file

@ -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;
}