fixes #1913 hide/show newsletter subscribe link based on user_prefs

This commit is contained in:
plegall
2023-05-10 14:40:10 +02:00
parent 4ba6aced52
commit bb023d09ad
2 changed files with 15 additions and 14 deletions
+2 -2
View File
@@ -27,7 +27,7 @@ check_status(ACCESS_ADMINISTRATOR);
if (isset($_GET['action']) and 'hide_newsletter_subscription' == $_GET['action'])
{
conf_update_param('show_newsletter_subscription', 'false', true);
userprefs_update_param('show_newsletter_subscription', 'false');
exit();
}
@@ -81,7 +81,7 @@ fs_quick_check();
$template->set_filenames(array('intro' => 'intro.tpl'));
if ($conf['show_newsletter_subscription']) {
if ($conf['show_newsletter_subscription'] and userprefs_get_param('show_newsletter_subscription', true)) {
$template->assign(
array(
'EMAIL' => $user['email'],