From a7ce26153185c274a08fb52b07402c8afba6f128 Mon Sep 17 00:00:00 2001 From: rub Date: Tue, 19 Dec 2006 22:05:01 +0000 Subject: Apply Nicco's style footer to HTML mail. Add 2 news functions to indicate to build URL with full path git-svn-id: http://piwigo.org/svn/trunk@1676 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/include/functions_notification_by_mail.inc.php | 18 +++--------------- 1 file changed, 3 insertions(+), 15 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 4bd2cfba3..05c3d0378 100644 --- a/admin/include/functions_notification_by_mail.inc.php +++ b/admin/include/functions_notification_by_mail.inc.php @@ -312,16 +312,11 @@ function display_counter_info() function get_mail_content_subscribe_unsubcribe($nbm_user) { - global $page, $env_nbm; + global $env_nbm; $content = "\n\n\n"; - if ( isset($page['root_path']) ) - { - $save_root_path = $page['root_path']; - } - - $page['root_path'] = 'http://'.$_SERVER['HTTP_HOST'].cookie_path(); + set_make_full_url(); $content .= "___________________________________________________\n\n"; $content .= sprintf(l10n('nbm_content_unsubscribe_link'), add_url_params(get_root_url().'nbm.php', array('unsubscribe' => $nbm_user['check_key'])))."\n"; @@ -329,14 +324,7 @@ function get_mail_content_subscribe_unsubcribe($nbm_user) $content .= sprintf(l10n('nbm_content_subscribe_unsubscribe_contact'), $env_nbm['send_as_mail_address'])."\n"; $content .= "___________________________________________________\n\n\n\n"; - if (isset($save_root_path)) - { - $page['root_path'] = $save_root_path; - } - else - { - unset($page['root_path']); - } + unset_make_full_url(); return $content; } -- cgit v1.2.3