]> git.mxchange.org Git - friendica-addons.git/blobdiff - blackout/blackout.php
[various] Remove App dependency from hook functions
[friendica-addons.git] / blackout / blackout.php
index c211c914a4cfd1ecb0d377f2e7b0a22727a4a660..55fb8d32c1b2f8b6d0e02c85cfea3e103210d338 100644 (file)
@@ -55,7 +55,7 @@ function blackout_install() {
        Hook::register('page_header', 'addon/blackout/blackout.php', 'blackout_redirect');
 }
 
-function blackout_redirect (App $a, $b)
+function blackout_redirect ($b)
 {
        // if we have a logged in user, don't throw her out
        if (DI::userSession()->getLocalUserId()) {
@@ -83,7 +83,7 @@ function blackout_redirect (App $a, $b)
        }
 }
 
-function blackout_addon_admin(App $a, string &$o)
+function blackout_addon_admin(string &$o)
 {
        $mystart = DI::config()->get('blackout','begindate');
        if (! is_string($mystart)) { $mystart = 'YYYY-MM-DD hh:mm'; }
@@ -112,7 +112,7 @@ function blackout_addon_admin(App $a, string &$o)
        ]);
 }
 
-function blackout_addon_admin_post (App $a)
+function blackout_addon_admin_post ()
 {
        DI::config()->set('blackout', 'begindate', trim($_POST['startdate']));
        DI::config()->set('blackout', 'enddate', trim($_POST['enddate']));