]> git.mxchange.org Git - friendica-addons.git/commitdiff
[various] Fix *_addon_admin_post parameters
authorHypolite Petovan <hypolite@mrpetovan.com>
Wed, 15 May 2019 12:04:54 +0000 (08:04 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Wed, 15 May 2019 12:04:54 +0000 (08:04 -0400)
cookienotice/cookienotice.php
pageheader/pageheader.php

index cc36bc29d6ed348a0a47f755c9156b1c8f9c8202..097f3c25ce2b5a8424614b63d62dc0d988d7861b 100644 (file)
@@ -56,15 +56,13 @@ function cookienotice_addon_admin(App $a, &$s)
 
 /**
  * cookienotice_addon_admin_post
- * addon_settings_post hook
  * handles the post request from the admin panel
  *
  * @param App    $a
- * @param string $b
  *
  * @return void
  */
-function cookienotice_addon_admin_post(App $a, &$b)
+function cookienotice_addon_admin_post(App $a)
 {
        if (!is_site_admin()) {
                return;
@@ -73,7 +71,7 @@ function cookienotice_addon_admin_post(App $a, &$b)
        if ($_POST['cookienotice-submit']) {
                Config::set('cookienotice', 'text', trim(strip_tags($_POST['cookienotice-text'])));
                Config::set('cookienotice', 'oktext', trim(strip_tags($_POST['cookienotice-oktext'])));
-               info(L10n::t('cookienotice Settings saved.') . EOL);
+               info(L10n::t('cookienotice Settings saved.'));
        }
 }
 
index 9e40d4e7562f3c2c6a6f71299b139a7d5e7df9d7..fd07fc1dec2392c73127b667e1f650d5338fff09 100644 (file)
@@ -42,7 +42,7 @@ function pageheader_addon_admin(App &$a, &$s)
        return;
 }
 
-function pageheader_addon_admin_post(App $a, &$b)
+function pageheader_addon_admin_post(App $a)
 {
        if(!is_site_admin()) {
                return;
@@ -52,7 +52,7 @@ function pageheader_addon_admin_post(App $a, &$b)
                if (isset($_POST['pageheader-words'])) {
                        Config::set('pageheader', 'text', trim(strip_tags($_POST['pageheader-words'])));
                }
-               info(L10n::t('pageheader Settings saved.') . EOL);
+               info(L10n::t('pageheader Settings saved.'));
        }
 }