mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-08 17:53:08 +02:00
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
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user