]> git.mxchange.org Git - friendica.git/blobdiff - src/Content/Feature.php
Replace deprecated Addon::callHooks with Hook::callAll
[friendica.git] / src / Content / Feature.php
index 446ea2705ca42bd64d407443f2220026258efcfd..7493965509da06a6629a1fb6bbc01f9a2251a8ea 100644 (file)
@@ -5,8 +5,8 @@
  */
 namespace Friendica\Content;
 
-use Friendica\Core\Addon;
 use Friendica\Core\Config;
+use Friendica\Core\Hook;
 use Friendica\Core\L10n;
 use Friendica\Core\PConfig;
 
@@ -36,7 +36,7 @@ class Feature
                }
 
                $arr = ['uid' => $uid, 'feature' => $feature, 'enabled' => $x];
-               Addon::callHooks('isEnabled', $arr);
+               Hook::callAll('isEnabled', $arr);
                return($arr['enabled']);
        }
 
@@ -139,7 +139,7 @@ class Feature
                        }
                }
 
-               Addon::callHooks('get', $arr);
+               Hook::callAll('get', $arr);
                return $arr;
        }
 }