Rename xorg_ constants to pl_
[platal.git] / include / validations / paiements.inc.php
index f6c5964..2343ac3 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   *
@@ -86,11 +86,11 @@ class PayReq extends Validate
     {
         // no text [AI JMIAJM IJA MIJ]
         if (preg_match('/\[[-\'"A-Z ]+\]/', $this->msg_reponse)) {
-            $this->trig("La demande de paiement n'est pas valide. Merci de compléter le texte avant de la soumettre");
+            $this->trigError("La demande de paiement n'est pas valide. Merci de compléter le texte avant de la soumettre");
             return false;
         }
         if (!preg_match('/<montant>/', $this->msg_reponse)) {
-            $this->trig("Le demande de paiement ne contient pas la balise obligatoire &lt;montant&gt;");
+            $this->trigError("Le demande de paiement ne contient pas la balise obligatoire &lt;montant&gt;");
             return false;
         }
         return true;
@@ -193,7 +193,7 @@ class PayReq extends Validate
                 }
                 $topay = $u['montant'] - $u['paid'];
                 if ($topay > 0) {
-                    $mailer = new PlMailer('xnetevents/mail.new_payment.tpl');
+                    $mailer = new PlMailer('xnetevents/newpayment.mail.tpl');
                     $mailer->assign('asso', $nom);
                     $mailer->assign('diminutif', $diminutif);
                     $mailer->assign('evt', $evt);