From: Raphaël Barrois Date: Fri, 5 Feb 2010 12:58:52 +0000 (+0100) Subject: Remove ThrowError X-Git-Tag: xorg/1.0.0~332^2~250 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=825a13a42f190892cb09e037d25bb276cbc138af;p=platal.git Remove ThrowError Signed-off-by: Raphaël Barrois --- diff --git a/modules/search.php b/modules/search.php index bc32293..dab51c0 100644 --- a/modules/search.php +++ b/modules/search.php @@ -111,11 +111,11 @@ class SearchModule extends PLModule return; } if (!S::logged() && $nb_tot > $globals->search->public_max) { - new ThrowError('Votre recherche a généré trop de résultats pour un affichage public.'); + $page->trigError('Votre recherche a généré trop de résultats pour un affichage public.'); } elseif ($nb_tot > $globals->search->private_max) { - new ThrowError('Recherche trop générale. Une recherche avancée permet de préciser la recherche.'); + $page->trigError('Recherche trop générale. Une recherche avancée permet de préciser la recherche.'); } elseif (empty($nb_tot)) { - new ThrowError('Il n\'existe personne correspondant à ces critères dans la base !'); + $page->trigError('Il n\'existe personne correspondant à ces critères dans la base !'); } } else { $page->assign('formulaire',1); @@ -156,7 +156,7 @@ class SearchModule extends PLModule $nb_tot = $view->count(); if ($nb_tot > $globals->search->private_max) { $this->form_prepare(); - new ThrowError('Recherche trop générale.'); + $page->trigError('Recherche trop générale.'); } }