mirror of
https://github.com/friendica/friendica
synced 2025-04-25 17:50:11 +00:00
Update Addon functions and calls
Update function names and calls for Addon class.
This commit is contained in:
parent
213f6ae1a1
commit
11cf36105c
73 changed files with 544 additions and 464 deletions
|
@ -5,6 +5,7 @@
|
|||
*/
|
||||
namespace Friendica\Content;
|
||||
|
||||
use Friendica\Core\Addon;
|
||||
use Friendica\Core\Config;
|
||||
use Friendica\Core\PConfig;
|
||||
|
||||
|
@ -36,7 +37,7 @@ class Feature
|
|||
}
|
||||
|
||||
$arr = ['uid' => $uid, 'feature' => $feature, 'enabled' => $x];
|
||||
call_hooks('isEnabled', $arr);
|
||||
Addon::callHooks('isEnabled', $arr);
|
||||
return($arr['enabled']);
|
||||
}
|
||||
|
||||
|
@ -150,7 +151,7 @@ class Feature
|
|||
}
|
||||
}
|
||||
|
||||
call_hooks('get', $arr);
|
||||
Addon::callHooks('get', $arr);
|
||||
return $arr;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue