aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
authorrub <rub@piwigo.org>2006-12-19 22:05:01 +0000
committerrub <rub@piwigo.org>2006-12-19 22:05:01 +0000
commita7ce26153185c274a08fb52b07402c8afba6f128 (patch)
treec2b8123bc777f033445337b4944650c81d5b880a /admin
parenta65dbaa784ebcda9a807226e5739ba02e1a2123c (diff)
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
Diffstat (limited to 'admin')
-rw-r--r--admin/include/functions_notification_by_mail.inc.php18
1 files changed, 3 insertions, 15 deletions
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;
}