[various] Remove App dependency from hook functions

This commit is contained in:
Hypolite Petovan 2023-01-13 21:16:09 -05:00
parent b53914ee11
commit 39c654da00
87 changed files with 419 additions and 451 deletions

View file

@ -17,7 +17,7 @@ function viewsrc_install()
Hook::register('page_end', 'addon/viewsrc/viewsrc.php', 'viewsrc_page_end');
}
function viewsrc_page_end(App $a, string &$o)
function viewsrc_page_end(string &$o)
{
DI::page()['htmlhead'] .= <<< EOS
<script>
@ -30,7 +30,7 @@ function viewsrc_page_end(App $a, string &$o)
EOS;
}
function viewsrc_item_photo_menu(App $a, array &$b)
function viewsrc_item_photo_menu(array &$b)
{
if (!DI::userSession()->getLocalUserId()) {
return;