Fix typo
authorRaphaël Barrois <raphael.barrois@polytechnique.org>
Fri, 30 Nov 2012 08:54:22 +0000 (09:54 +0100)
committerRaphaël Barrois <raphael.barrois@polytechnique.org>
Fri, 30 Nov 2012 08:54:22 +0000 (09:54 +0100)
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
modules/lists.php

index d4e3d81..bf6112f 100644 (file)
@@ -560,14 +560,14 @@ class ListsModule extends PLModule
 
             if (Env::has('sadd')) {
                 // Ensure the moderated request is still active
-                $sub = $mlist->getPendingSub(Env::v('sadd'));
+                $sub = $mlist->getPendingSubscription(Env::v('sadd'));
 
                 $mlist->handleRequest(MailingList::REQ_SUBSCRIBE, Env::v('sadd'));
                 $info = "validée";
             }
             if (Post::has('sdel')) {
                 // Ensure the moderated request is still active
-                $sub = $mlist->getPendingSub(Env::v('sdel'));
+                $sub = $mlist->getPendingSubscription(Env::v('sdel'));
 
                 $mlist->handleRequest(MailingList::REQ_REJECT, Post::v('sdel'), Post::v('reason'));
                 $info = "refusée";