X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fparse_url.php;h=14ec4d42ce45748ea89c8150655347616b92a7b5;hb=55e54bb9500f54bb075dcbc2054018de0969d9e7;hp=07f319fdca69e8ab2372b29b1302a81d1c97398c;hpb=69a73678ebc18ad27b27f1bf92bc9433b7e7066f;p=friendica.git diff --git a/mod/parse_url.php b/mod/parse_url.php index 07f319fdca..14ec4d42ce 100644 --- a/mod/parse_url.php +++ b/mod/parse_url.php @@ -10,13 +10,11 @@ * @see ParseUrl::getSiteinfo() for more information about scraping embeddable content */ use Friendica\App; -use Friendica\Core\Addon; +use Friendica\Core\Hook; use Friendica\Core\Logger; use Friendica\Util\Network; use Friendica\Util\ParseUrl; -require_once 'include/items.php'; - function parse_url_content(App $a) { $text = null; @@ -99,7 +97,7 @@ function parse_url_content(App $a) $arr = ['url' => $url, 'text' => '']; - Addon::callHooks('parse_link', $arr); + Hook::callAll('parse_link', $arr); if (strlen($arr['text'])) { echo $arr['text'];