uho we don't want <br> here !, add them in .tpl if wanted
authorx2000habouzit <x2000habouzit>
Tue, 12 Oct 2004 22:00:15 +0000 (22:00 +0000)
committerx2000habouzit <x2000habouzit>
Tue, 12 Oct 2004 22:00:15 +0000 (22:00 +0000)
include/search.classes.inc.php

index 1335388..0e81221 100644 (file)
@@ -18,7 +18,7 @@
  *  Foundation, Inc.,                                                      *
  *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                *
  ***************************************************************************
-        $Id: search.classes.inc.php,v 1.17 2004-10-12 21:56:51 x2000habouzit Exp $
+        $Id: search.classes.inc.php,v 1.18 2004-10-12 22:00:15 x2000habouzit Exp $
  ***************************************************************************/
 
 require_once("xorg.misc.inc.php");
@@ -137,7 +137,7 @@ class NumericSField extends SField {
         if ($this->value=='')
             $this->value = 0;
         if (!preg_match("/^[0-9]+$/", $this->value))
-            new ThrowError('Un champ numérique contient des caractères alphanumériques.<br />');
+            new ThrowError('Un champ numérique contient des caractères alphanumériques.');
     }
 }
 
@@ -209,8 +209,7 @@ class StringSField extends SField {
     function get_request() {
         parent::get_request();
         if (preg_match(":[][<>{}~/§_`|%$^=+]|\*\*:", $this->value))
-            new ThrowError('Un champ contient un caractère interdit rendant la recherche'
-            .' impossible.<br />');
+            new ThrowError('Un champ contient un caractère interdit rendant la recherche impossible.');
     }
 
     /** donne la longueur de la requête de l'utilisateur
@@ -278,7 +277,7 @@ class PromoSField extends SField {
     function get_request() {
         parent::get_request();
         if (!(empty($this->value) or preg_match("/^[0-9]{4}$/", $this->value)))
-            new ThrowError('La promotion est une année à quatre chiffres.<br />');
+            new ThrowError('La promotion est une année à quatre chiffres.');
     }
 
     /** teste si la requête est de la forme =promotion -> contrainte forte imposée -> elle suffit