From 1ea81f6e9343338ec9920c0dc6ea9257bedaaecf Mon Sep 17 00:00:00 2001 From: plegall Date: Sat, 11 Feb 2012 22:39:56 +0000 Subject: merge r13105 from branch 2.3 to trunk bug 2551 fixed: force the use of $conf['gallery_url'] (thanks to the get_gallery_home_url function) to build subscribe/unsubscribe links in NBM emails. git-svn-id: http://piwigo.org/svn/trunk@13106 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/include/functions_notification_by_mail.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'admin/include/functions_notification_by_mail.inc.php') diff --git a/admin/include/functions_notification_by_mail.inc.php b/admin/include/functions_notification_by_mail.inc.php index 7d3c0071c..92b44aab7 100644 --- a/admin/include/functions_notification_by_mail.inc.php +++ b/admin/include/functions_notification_by_mail.inc.php @@ -339,8 +339,8 @@ function assign_vars_nbm_mail_content($nbm_user) 'SEND_AS_NAME' => $env_nbm['send_as_name'], - 'UNSUBSCRIBE_LINK' => add_url_params(get_root_url().'nbm.php', array('unsubscribe' => $nbm_user['check_key'])), - 'SUBSCRIBE_LINK' => add_url_params(get_root_url().'nbm.php', array('subscribe' => $nbm_user['check_key'])), + 'UNSUBSCRIBE_LINK' => add_url_params(get_gallery_home_url().'/nbm.php', array('unsubscribe' => $nbm_user['check_key'])), + 'SUBSCRIBE_LINK' => add_url_params(get_gallery_home_url().'/nbm.php', array('subscribe' => $nbm_user['check_key'])), 'CONTACT_EMAIL' => $env_nbm['send_as_mail_address'] ) ); -- cgit v1.2.3