/**
* 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;
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.'));
}
}
return;
}
-function pageheader_addon_admin_post(App $a, &$b)
+function pageheader_addon_admin_post(App $a)
{
if(!is_site_admin()) {
return;
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.'));
}
}