*/
namespace Friendica\Content;
-use Friendica\Core\Addon;
use Friendica\Core\Config;
+use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\PConfig;
* @param integer $uid user id
* @param string $feature feature
* @return boolean
+ * @throws \Friendica\Network\HTTPException\InternalServerErrorException
*/
public static function isEnabled($uid, $feature)
{
}
$arr = ['uid' => $uid, 'feature' => $feature, 'enabled' => $x];
- Addon::callHooks('isEnabled', $arr);
+ Hook::callAll('isEnabled', $arr);
return($arr['enabled']);
}
*
* @param string $feature feature
* @return boolean
+ * @throws \Friendica\Network\HTTPException\InternalServerErrorException
*/
private static function getDefault($feature)
{
* @param bool $filtered True removes any locked features
*
* @return array
+ * @throws \Friendica\Network\HTTPException\InternalServerErrorException
*/
public static function get($filtered = true)
{
}
}
- Addon::callHooks('get', $arr);
+ Hook::callAll('get', $arr);
return $arr;
}
}