[various] Remove App dependency from hook functions
This commit is contained in:
parent
b53914ee11
commit
39c654da00
87 changed files with 419 additions and 451 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue