Fixes storing issue number on nl unsubscription.
authorStéphane Jacob <sj@m4x.org>
Thu, 21 Jul 2011 07:43:57 +0000 (09:43 +0200)
committerStéphane Jacob <sj@m4x.org>
Thu, 21 Jul 2011 07:43:57 +0000 (09:43 +0200)
Signed-off-by: Stéphane Jacob <sj@m4x.org>
modules/axletter.php
modules/epletter.php
templates/newsletter/nl.AX.mail.tpl

index 0f3eace..d6a63be 100644 (file)
@@ -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);
     }
 }
 
index f8e8dad..b914893 100644 (file)
@@ -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);
     }
 }
 
index 9898404..158a168 100644 (file)
@@ -43,10 +43,10 @@ Cette lettre est envoyée par l'AX grâce aux outils de Polytechnique.org.
 
 {if $is_mail}
 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}>
 {else}
 archives         : &lt;https://www.polytechnique.org/ax&gt;
-ne plus recevoir : &lt;https://www.polytechnique.org/ax/out/{if $hash}{$hash}{else}nohash{/if}/issue/{$issue->id}&gt;
+ne plus recevoir : &lt;https://www.polytechnique.org/ax/out/{if $hash}{$hash}{else}nohash{/if}/{$issue->id}&gt;
 {/if}
 
 {if !$is_mail}