Merge commit 'origin/master' into hruid
[platal.git] / include / validations / nl.inc.php
index f9aff28..3008be3 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /***************************************************************************
- *  Copyright (C) 2003-2007 Polytechnique.org                              *
+ *  Copyright (C) 2003-2008 Polytechnique.org                              *
  *  http://opensource.polytechnique.org/                                   *
  *                                                                         *
  *  This program is free software; you can redistribute it and/or modify   *
@@ -29,14 +29,14 @@ class NLReq extends Validate
 
     public $art;
     public $rules = "Laisser valider par le NL-MASTER";
-    
+
     // }}}
     // {{{ constructor
 
-    public function __construct($uid, $title, $body, $append)
+    public function __construct(User &$_user, $_title, $_body, $_append)
     {
-        parent::__construct($uid, false, 'nl');
-        $this->art = new NLArticle($title, $body, $append);
+        parent::__construct($_user, false, 'nl');
+        $this->art = new NLArticle($_title, $_body, $_append);
     }
 
     // }}}
@@ -68,7 +68,7 @@ class NLReq extends Validate
 
     // }}}
     // {{{ function _mail_subj
-    
+
     protected function _mail_subj()
     {
         return "[Polytechnique.org/NL] Proposition d'article dans la NL";