mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-06-07 09:54:27 +02:00
[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
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue