Update validation list creation.
authorRaphaël Barrois <raphael.barrois@polytechnique.org>
Wed, 7 Nov 2012 23:19:29 +0000 (00:19 +0100)
committerRaphaël Barrois <raphael.barrois@polytechnique.org>
Sat, 10 Nov 2012 16:04:44 +0000 (17:04 +0100)
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
include/validations/listes.inc.php

index 3b42d4a..8ab84eb 100644 (file)
@@ -144,10 +144,11 @@ class ListeReq extends Validate
             $owners = array_values(array_unique($owners));
             $members = array_values(array_unique($members));
 
-            $list = new MailingList($this->liste, $this->domain);
-            $success = $list->create($this->desc, $this->advertise,
-                                     $this->modlevel, $this->inslevel,
-                                     $owners, $members);
+            $success = MailingList::create($this->liste, $this->domain, null,
+                $this->desc, $this->advertise,
+                $this->modlevel, $this->inslevel,
+                $owners, $members);
+
             if ($success) {
                 create_list($this->liste, $this->domain);
             }