From 4eb1f02cfc1deb1ea0cca4841c1d4645eb28b653 Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Jacob?= Date: Thu, 21 Jul 2011 09:43:57 +0200 Subject: [PATCH] Fixes storing issue number on nl unsubscription. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Jacob --- modules/axletter.php | 4 ++-- modules/epletter.php | 4 ++-- templates/newsletter/nl.AX.mail.tpl | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/axletter.php b/modules/axletter.php index 0f3eace..d6a63be 100644 --- a/modules/axletter.php +++ b/modules/axletter.php @@ -45,14 +45,14 @@ class AXLetterModule extends NewsletterModule return NewsLetter::forGroup(NewsLetter::GROUP_AX); } - function handler_out($page, $hash = null) + function handler_out($page, $hash = null, $issue_id = null) { if (!$hash) { if (!S::logged()) { return PL_DO_AUTH; } } - return $this->handler_nl($page, 'out', $hash); + return $this->handler_nl($page, 'out', $hash, $issue_id); } } diff --git a/modules/epletter.php b/modules/epletter.php index f8e8dad..b914893 100644 --- a/modules/epletter.php +++ b/modules/epletter.php @@ -45,14 +45,14 @@ class EPLetterModule extends NewsletterModule return NewsLetter::forGroup(NewsLetter::GROUP_EP); } - function handler_out($page, $hash = null) + function handler_out($page, $hash = null, $issue_id = null) { if (!$hash) { if (!S::logged()) { return PL_DO_AUTH; } } - return $this->handler_nl($page, 'out', $hash); + return $this->handler_nl($page, 'out', $hash, $issue_id); } } diff --git a/templates/newsletter/nl.AX.mail.tpl b/templates/newsletter/nl.AX.mail.tpl index 9898404..158a168 100644 --- a/templates/newsletter/nl.AX.mail.tpl +++ b/templates/newsletter/nl.AX.mail.tpl @@ -43,10 +43,10 @@ Cette lettre est envoyée par l'AX grâce aux outils de Polytechnique.org. {if $is_mail} archives : -ne plus recevoir : id}> +ne plus recevoir : id}> {else} archives : <https://www.polytechnique.org/ax> -ne plus recevoir : <https://www.polytechnique.org/ax/out/{if $hash}{$hash}{else}nohash{/if}/issue/{$issue->id}> +ne plus recevoir : <https://www.polytechnique.org/ax/out/{if $hash}{$hash}{else}nohash{/if}/{$issue->id}> {/if} {if !$is_mail} -- 2.1.4