Minor fixes to reminders.
authorVincent Zanotti <vincent.zanotti@m4x.org>
Sun, 28 Jun 2009 20:43:51 +0000 (22:43 +0200)
committerVincent Zanotti <vincent.zanotti@m4x.org>
Mon, 6 Jul 2009 16:59:09 +0000 (18:59 +0200)
Signed-off-by: Vincent Zanotti <vincent.zanotti@m4x.org>
include/reminder/nl.inc.php
include/reminder/promotion_ml.inc.php

index ba924c4..ddb0109 100644 (file)
@@ -25,7 +25,7 @@ class ReminderNl extends Reminder
     {
         if ($action == 'yes') {
             require_once 'newsletter.inc.php';
-            Newsletter::subscribe();
+            NewsLetter::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::subscriptionState();
         if ($isSubscribed) {
             Reminder::MarkCandidateAsAccepted($user->id(), $candidate);
         }
index 4cac8e7..b67b59b 100644 (file)
@@ -26,8 +26,8 @@ class ReminderPromotionMl extends Reminder
         switch ($action) {
           case 'yes':
             $res = XDB::query('SELECT  id
-                               FROM  groupex.asso
-                              WHERE  diminutif = {?}',
+                                 FROM  groupex.asso
+                                WHERE  diminutif = {?}',
                             S::v('promo'));
             $asso_id = $res->fetchOneCell();
             XDB::execute('REPLACE INTO  groupex.membres (uid, asso_id)