X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=src%2FContent%2FFeature.php;h=47b72dce3dfb08279d9295585042cd8ba0b2e2c0;hb=a5952e5425ee623253b2c91daa873ff6cc63bd39;hp=6d90c3fbc41085981fa9338b4c3bf6e4027d6222;hpb=e36f2bb1fb3439e9993c7568e57140c4f954b772;p=friendica.git diff --git a/src/Content/Feature.php b/src/Content/Feature.php index 6d90c3fbc4..47b72dce3d 100644 --- a/src/Content/Feature.php +++ b/src/Content/Feature.php @@ -5,11 +5,10 @@ */ namespace Friendica\Content; +use Friendica\Core\Addon; use Friendica\Core\Config; use Friendica\Core\PConfig; -require_once 'include/plugin.php'; - class Feature { /** @@ -36,7 +35,7 @@ class Feature } $arr = ['uid' => $uid, 'feature' => $feature, 'enabled' => $x]; - call_hooks('isEnabled', $arr); + Addon::callHooks('isEnabled', $arr); return($arr['enabled']); } @@ -150,7 +149,7 @@ class Feature } } - call_hooks('get', $arr); + Addon::callHooks('get', $arr); return $arr; } }