mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-06-17 04:45:14 +02:00
Functions moved to Strings class
implement functions from Strings class
This commit is contained in:
parent
1746d0814d
commit
1ac32c622e
22 changed files with 80 additions and 58 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue