]> git.mxchange.org Git - friendica-addons.git/blobdiff - gnot/gnot.php
[various] Remove App dependency from hook functions
[friendica-addons.git] / gnot / gnot.php
index e3594b149a6c0f048b5d7e3bc70dd1d980f300b6..15fb4da00b8b118896f068b3da5597b11d40d933 100644 (file)
@@ -30,7 +30,7 @@ function gnot_install()
  * We will make sure we've got a valid user account
  * and if so set our configuration setting for this person.
  */
-function gnot_settings_post(App $a, $post) {
+function gnot_settings_post($post) {
        if(! DI::userSession()->getLocalUserId() || empty($_POST['gnot-submit']))
                return;
 
@@ -41,7 +41,7 @@ function gnot_settings_post(App $a, $post) {
  * Called from the Addon Setting form. 
  * Add our own settings info to the page.
  */
-function gnot_settings(App &$a, array &$data)
+function gnot_settings(array &$data)
 {
        if (!DI::userSession()->getLocalUserId()) {
                return;
@@ -62,7 +62,7 @@ function gnot_settings(App &$a, array &$data)
        ];
 }
 
-function gnot_enotify_mail(App $a, array &$b)
+function gnot_enotify_mail(array &$b)
 {
        if ((!$b['uid']) || (! intval(DI::pConfig()->get($b['uid'], 'gnot','enable')))) {
                return;