X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fxnetlists.php;h=4f6dcb2c20b418e182546d6a0cce0add1eedf930;hb=efe597c5795234724bc3df508bd628f9860a9c32;hp=35b0f8633dbfed2a64dee418a9a19575bc87293f;hpb=4478f95efc07709dbe0a4415e979ff0347651cf8;p=platal.git diff --git a/modules/xnetlists.php b/modules/xnetlists.php index 35b0f86..4f6dcb2 100644 --- a/modules/xnetlists.php +++ b/modules/xnetlists.php @@ -53,13 +53,15 @@ class XnetListsModule extends ListsModule ); } - function prepare_client(&$page) + function prepare_client(&$page, $user = null) { global $globals; Platal::load('lists', 'lists.inc.php'); - $this->client = new MMList(S::v('uid'), S::v('password'), - $globals->asso('mail_domain')); + if (is_null($user)) { + $user =& S::user(); + } + $this->client = new MMList($user, $globals->asso('mail_domain')); $page->assign('asso', $globals->asso()); $page->setType($globals->asso('cat'));