X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=qcomment%2Fqcomment.php;h=2e1783c09b5e32dd59d777dbbe573bfb2b268241;hb=0afd633346b517894ff8e92c705bd5d052dd06a2;hp=f4b951843a82a8db18fe65bc622c824bc3c69c6d;hpb=e97235353f0cb7e11a72054313311f3a2b040655;p=friendica-addons.git diff --git a/qcomment/qcomment.php b/qcomment/qcomment.php index f4b95184..2e1783c0 100644 --- a/qcomment/qcomment.php +++ b/qcomment/qcomment.php @@ -19,19 +19,19 @@ * them to open the comment window fully and insert the qcomment. Then "Submit" will submit it. * */ - +use Friendica\Core\Addon; use Friendica\Core\PConfig; function qcomment_install() { - register_hook('plugin_settings', 'addon/qcomment/qcomment.php', 'qcomment_addon_settings'); - register_hook('plugin_settings_post', 'addon/qcomment/qcomment.php', 'qcomment_addon_settings_post'); + Addon::registerHook('plugin_settings', 'addon/qcomment/qcomment.php', 'qcomment_addon_settings'); + Addon::registerHook('plugin_settings_post', 'addon/qcomment/qcomment.php', 'qcomment_addon_settings_post'); } function qcomment_uninstall() { - unregister_hook('plugin_settings', 'addon/qcomment/qcomment.php', 'qcomment_addon_settings'); - unregister_hook('plugin_settings_post', 'addon/qcomment/qcomment.php', 'qcomment_addon_settings_post'); + Addon::unregisterHook('plugin_settings', 'addon/qcomment/qcomment.php', 'qcomment_addon_settings'); + Addon::unregisterHook('plugin_settings_post', 'addon/qcomment/qcomment.php', 'qcomment_addon_settings_post'); }