Moving to GitHub.
[platal.git] / modules / xnetlists.php
index 2db6c73..bc1bcbb 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /***************************************************************************
- *  Copyright (C) 2003-2011 Polytechnique.org                              *
+ *  Copyright (C) 2003-2014 Polytechnique.org                              *
  *  http://opensource.polytechnique.org/                                   *
  *                                                                         *
  *  This program is free software; you can redistribute it and/or modify   *
@@ -174,7 +174,8 @@ class XnetListsModule extends ListsModule
         }
 
         $mlist = $this->prepare_list($list);
-        $success = $mlist->create(Post::t('desc'),
+        $success = MailingList::create($mlist->mbox, $mlist->domain, S::user(),
+            Post::t('desc'),
             Post::t('advertise'), Post::t('modlevel'), Post::t('inslevel'),
             array(S::user()->forlifeEmail()), array(S::user()->forlifeEmail()));
 
@@ -311,5 +312,5 @@ class XnetListsModule extends ListsModule
     }
 }
 
-// vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8:
+// vim:set et sw=4 sts=4 sws=4 foldmethod=marker fenc=utf-8:
 ?>