fixes #93 automatically hide the newsletter link when clicked

This commit is contained in:
plegall
2019-06-28 14:45:05 +02:00
parent 3999bff326
commit 0ef2193471
5 changed files with 24 additions and 1 deletions
+6
View File
@@ -25,6 +25,12 @@ check_status(ACCESS_ADMINISTRATOR);
// | tabs |
// +-----------------------------------------------------------------------+
if (isset($_GET['action']) and 'hide_newsletter_subscription' == $_GET['action'])
{
conf_update_param('show_newsletter_subscription', 'false', true);
exit();
}
include_once(PHPWG_ROOT_PATH.'admin/include/tabsheet.class.php');
$my_base_url = get_root_url().'admin.php?page=';