]> git.mxchange.org Git - friendica.git/blobdiff - mod/parse_url.php
Replace deprecated Addon::callHooks with Hook::callAll
[friendica.git] / mod / parse_url.php
index 02fbfa1b7db07a5e63c37eea9211fbf88222fc8f..14ec4d42ce45748ea89c8150655347616b92a7b5 100644 (file)
@@ -10,7 +10,7 @@
  * @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;
@@ -97,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'];