]> git.mxchange.org Git - friendica.git/blobdiff - src/Util/ParseUrl.php
Replace deprecated Addon::callHooks with Hook::callAll
[friendica.git] / src / Util / ParseUrl.php
index 70c5279cc84a42ce9314a202375cb2f1382c6fd5..cdafc7387b800b7b8019ffc394981066aef38ac9 100644 (file)
@@ -8,11 +8,10 @@ namespace Friendica\Util;
 use DOMDocument;
 use DOMXPath;
 use Friendica\Content\OEmbed;
-use Friendica\Core\Addon;
+use Friendica\Core\Hook;
 use Friendica\Core\Logger;
 use Friendica\Database\DBA;
 use Friendica\Object\Image;
-use Friendica\Util\Strings;
 
 /**
  * @brief Class with methods for extracting certain content from an url
@@ -422,7 +421,7 @@ class ParseUrl
 
                Logger::log('Siteinfo for ' . $url . ' ' . print_r($siteinfo, true), Logger::DEBUG);
 
-               Addon::callHooks('getsiteinfo', $siteinfo);
+               Hook::callAll('getsiteinfo', $siteinfo);
 
                return $siteinfo;
        }