Fixes Xnet group member edition/unsubscribe; Closes #1212
authorRaphaël Barrois <raphael.barrois@polytechnique.org>
Wed, 11 Aug 2010 13:36:15 +0000 (15:36 +0200)
committerRaphaël Barrois <raphael.barrois@polytechnique.org>
Wed, 11 Aug 2010 13:36:15 +0000 (15:36 +0200)
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
modules/xnetgrp.php

index 7cf8d26..a637756 100644 (file)
@@ -735,7 +735,7 @@ class XnetGrpModule extends PLModule
             return true;
         }
 
-        $mmlist = new MMList($user, $domain);
+        $mmlist = new MMList(S::user(), $domain);
         $listes = $mmlist->get_lists($user->forlifeEmail());
 
         $may_update = may_update();
@@ -849,7 +849,7 @@ class XnetGrpModule extends PLModule
             return PL_NOT_FOUND;
         }
 
-        $mmlist = new MMList($user, $globals->asso('mail_domain'));
+        $mmlist = new MMList(S::user(), $globals->asso('mail_domain'));
 
         if (Post::has('change')) {
             S::assert_xsrf_token();