xhtml validation
[platal.git] / modules / payment / money.inc.php
index 862232a..ab32ff9 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /***************************************************************************
- *  Copyright (C) 2003-2006 Polytechnique.org                              *
+ *  Copyright (C) 2003-2007 Polytechnique.org                              *
  *  http://opensource.polytechnique.org/                                   *
  *                                                                         *
  *  This program is free software; you can redistribute it and/or modify   *
@@ -19,8 +19,6 @@
  *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                *
  ***************************************************************************/
 
-require_once dirname(__FILE__).'/../../classes/Flagset.php';
-
 class Payment
 {
     // {{{ properties
@@ -52,8 +50,6 @@ class Payment
         $this->montant_min = (float)$this->montant_min;
         $this->montant_max = (float)$this->montant_max;
         $this->flags       = new Flagset($flags);
-
-        return $link;
     }
 
     // }}}
@@ -63,9 +59,9 @@ class Payment
     {
         $v = (float)strtr($value, ',', '.');
         if ($this->montant_min > $v) {
-            return "Montant inférieur au minimum autorisé ({$this->montant_min}).";
+            return "Montant inférieur au minimum autorisé ({$this->montant_min}).";
         } elseif ($v > $this->montant_max) {
-            return "Montant supérieur au maximum autorisé ({$this->montant_max}).";
+            return "Montant supérieur au maximum autorisé ({$this->montant_max}).";
         } else {
             return true;
         }
@@ -125,5 +121,5 @@ class PayMethod
 
 // }}}
 
-// vim:set et sw=4 sts=4 sws=4 foldmethod=marker:
+// vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8:
 ?>