[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
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue