From 1d942d3205150f42c7839b4e41c5e030180f122f Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Wed, 15 May 2019 08:04:54 -0400 Subject: [PATCH] [various] Fix *_addon_admin_post parameters --- cookienotice/cookienotice.php | 6 ++---- pageheader/pageheader.php | 4 ++-- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/cookienotice/cookienotice.php b/cookienotice/cookienotice.php index cc36bc29..097f3c25 100644 --- a/cookienotice/cookienotice.php +++ b/cookienotice/cookienotice.php @@ -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.')); } } diff --git a/pageheader/pageheader.php b/pageheader/pageheader.php index 9e40d4e7..fd07fc1d 100644 --- a/pageheader/pageheader.php +++ b/pageheader/pageheader.php @@ -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.')); } }