X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Freminder%2Fml.inc.php;h=82446541553b5df05a6a3b6613bde1f03ade391e;hb=0f5f1b707d93b4dc8c5875c2129bb38fcd186563;hp=9732bb22825340d56470f1b0f8ff32288a8412c1;hpb=4b0cb388b3b573048f35d1050c9c459c3090b16c;p=platal.git diff --git a/include/reminder/ml.inc.php b/include/reminder/ml.inc.php index 9732bb2..8244654 100644 --- a/include/reminder/ml.inc.php +++ b/include/reminder/ml.inc.php @@ -1,6 +1,6 @@ next()) { if (array_shift($subs) == "$sub@$domain") { - list($sub, $domain) = explode('@', $list); 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); } } @@ -59,7 +58,7 @@ class ReminderMl extends Reminder } } - public function Prepare(&$page) + public function Prepare($page) { parent::Prepare($page); @@ -73,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; @@ -90,7 +89,7 @@ class ReminderMl extends Reminder return "Inscription aux listes de diffusion"; } - public static function IsCandidate(User &$user, $candidate) + public static function IsCandidate(User $user, $candidate) { $res = XDB::query("SELECT COUNT(*) AS lists FROM register_subs