mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-11 19:23:01 +02:00
fixes #1913 hide/show newsletter subscribe link based on user_prefs
This commit is contained in:
+2
-2
@@ -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'],
|
||||
|
||||
Reference in New Issue
Block a user