[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

@ -18,7 +18,7 @@ function startpage_install() {
Hook::register('addon_settings_post', 'addon/startpage/startpage.php', 'startpage_settings_post');
}
function startpage_home_init(App $a, $b)
function startpage_home_init($b)
{
if (!DI::userSession()->getLocalUserId()) {
return;
@ -39,7 +39,7 @@ function startpage_home_init(App $a, $b)
*
*/
function startpage_settings_post(App $a, $post)
function startpage_settings_post($post)
{
if (!DI::userSession()->getLocalUserId()) {
return;
@ -56,7 +56,7 @@ function startpage_settings_post(App $a, $post)
* Add our own settings info to the page.
*
*/
function startpage_settings(App &$a, array &$data)
function startpage_settings(array &$data)
{
if (!DI::userSession()->getLocalUserId()) {
return;