Fix invalid references to S::v('password') when building list-rpc clients.
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Sun, 12 Dec 2010 20:24:57 +0000 (21:24 +0100)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Sun, 12 Dec 2010 20:24:57 +0000 (21:24 +0100)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
include/reminder/ml.inc.php
modules/register.php
modules/xnetgrp.php

index 2bb8ba3..c5ee810 100644 (file)
@@ -39,7 +39,7 @@ class ReminderMl extends Reminder
                     if ($domain != $current_domain) {
                         $current_domain = $domain;
                     }
-                    $client = new MMList(S::v('uid'), S::v('password'), $domain);
+                    $client = new MMList(S::user(), $domain);
                     $client->subscribe($sub);
                 }
             }
@@ -72,7 +72,7 @@ class ReminderMl extends Reminder
         while (list($sub, $domain) = $res->next()) {
             if ($current_domain != $domain) {
                 $current_domain = $domain;
-                $client = new MMList(S::v('uid'), S::v('password'), $domain);
+                $client = new MMList(S::user(), $domain);
             }
             list($details, ) = $client->get_members($sub);
             $lists["$sub@$domain"] = $details;
index b2c4a3d..c70a365 100644 (file)
@@ -372,7 +372,7 @@ class RegisterModule extends PLModule
                         XDB::execute('INSERT IGNORE INTO  group_members (uid, asso_id)
                                                   VALUES  ({?}, {?})',
                                      $uid, $asso_id);
-                        $mmlist = new MMList($uid, S::v('password'));
+                        $mmlist = new MMList($user);
                         $mmlist->subscribe("promo" . S::v('promo'));
                     }
                     break;
index 5080fb5..a558cbf 100644 (file)
@@ -249,8 +249,7 @@ class XnetGrpModule extends PLModule
         global $globals;
 
         $page->changeTpl('xnetgrp/mail.tpl');
-        $mmlist = new MMList(S::v('uid'), S::v('password'),
-                           $globals->asso('mail_domain'));
+        $mmlist = new MMList(S::user(), $globals->asso('mail_domain'));
         $page->assign('listes', $mmlist->get_lists());
         $page->assign('user', S::user());
         $page->addJsLink('ajax.js');