]> git.mxchange.org Git - friendica-addons.git/blobdiff - qcomment/qcomment.php
[various] Remove App dependency from hook functions
[friendica-addons.git] / qcomment / qcomment.php
index d4d88e8e0ea2e5ae753e7009f93b45ec95095109..1b8bfcbfd0674c7cf7327edff2a7593090c7b6c6 100644 (file)
@@ -31,12 +31,12 @@ function qcomment_install()
        Hook::register('footer'             , __FILE__, 'qcomment_footer');
 }
 
-function qcomment_footer(App $a, string &$body)
+function qcomment_footer(string &$body)
 {
        DI::page()->registerFooterScript('addon/qcomment/qcomment.js');
 }
 
-function qcomment_addon_settings(App &$a, array &$data)
+function qcomment_addon_settings(array &$data)
 {
        if (!DI::userSession()->getLocalUserId()) {
                return;
@@ -57,7 +57,7 @@ function qcomment_addon_settings(App &$a, array &$data)
        ];
 }
 
-function qcomment_addon_settings_post(App $a, array &$b)
+function qcomment_addon_settings_post(array &$b)
 {
        if (!DI::userSession()->getLocalUserId()) {
                return;