Fix X.org NL reminder
authorRaphaël Barrois <raphael.barrois@polytechnique.org>
Mon, 7 Feb 2011 16:34:12 +0000 (17:34 +0100)
committerRaphaël Barrois <raphael.barrois@polytechnique.org>
Mon, 7 Feb 2011 16:34:12 +0000 (17:34 +0100)
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
include/reminder/nl.inc.php

index 03b8ef2..73f1cd8 100644 (file)
@@ -25,7 +25,7 @@ class ReminderNl extends Reminder
     {
         if ($action == 'yes') {
             require_once 'newsletter.inc.php';
-            NewsLetter::subscribe();
+            NewsLetter::forGroup(NewsLetter::GROUP_XORG)->subscribe();
             $this->UpdateOnYes();
         }
 
@@ -52,7 +52,7 @@ class ReminderNl extends Reminder
     public static function IsCandidate(User &$user, $candidate)
     {
         require_once 'newsletter.inc.php';
-        $isSubscribed = NewsLetter::subscriptionState();
+        $isSubscribed = NewsLetter::forGroup(NewsLetter::GROUP_XORG)->subscriptionState();
         if ($isSubscribed) {
             Reminder::MarkCandidateAsAccepted($user->id(), $candidate);
         }