Replace deprecated Addon::*registerHook by Hook::*register

This commit is contained in:
Hypolite Petovan 2018-12-26 02:28:16 -05:00
parent eaeb834819
commit c27b1cb66f
82 changed files with 625 additions and 630 deletions

View file

@ -7,17 +7,17 @@
*/
use Friendica\App;
use Friendica\Core\Addon;
use Friendica\Core\Hook;
use Friendica\Core\L10n;
function buglink_install()
{
Addon::registerHook('page_end', 'addon/buglink/buglink.php', 'buglink_active');
Hook::register('page_end', 'addon/buglink/buglink.php', 'buglink_active');
}
function buglink_uninstall()
{
Addon::unregisterHook('page_end', 'addon/buglink/buglink.php', 'buglink_active');
Hook::unregister('page_end', 'addon/buglink/buglink.php', 'buglink_active');
}
function buglink_active(App $a, &$b)