mirror of
https://github.com/friendica/friendica
synced 2025-04-27 17:50:17 +00:00
Replace deprecated Addon::callHooks with Hook::callAll
- Update documentation
This commit is contained in:
parent
895b3abf32
commit
55e54bb950
58 changed files with 450 additions and 475 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue