From: x2000habouzit Date: Tue, 28 Feb 2006 17:43:15 +0000 (+0000) Subject: put fix wrt search in production X-Git-Tag: xorg/0.9.9~7 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=d82e2f01bada66d7090bf961f0928003e8480428;p=platal.git put fix wrt search in production git-svn-id: svn+ssh://murphy/home/svn/platal/branches/platal-0.9.9@254 839d8a87-29fc-0310-9880-83ba4fa771e5 --- diff --git a/htdocs/search.php b/htdocs/search.php index ad9cc04..6127913 100644 --- a/htdocs/search.php +++ b/htdocs/search.php @@ -78,7 +78,7 @@ if (Env::has('quick')) { $search->addOrder('score', 'score', false, 'pertinence', AUTH_PUBLIC, true); $nb_tot = $search->show(); - + if (!logged() && $nb_tot > $globals->search->public_max) { new ThrowError('Votre recherche a généré trop de résultats pour un affichage public.'); } elseif ($nb_tot > $globals->search->private_max) { diff --git a/templates/paiement/index.tpl b/templates/paiement/index.tpl index 3733fa0..42c3699 100644 --- a/templates/paiement/index.tpl +++ b/templates/paiement/index.tpl @@ -23,7 +23,7 @@

Télépaiements

-{if $smarty.request.op eq "submit" and !$xorg_error->errs|count} +{if $smarty.request.op eq "submit" and !$xorg_errors|count} diff --git a/templates/search.tpl b/templates/search.tpl index 54fc08b..57cc99f 100644 --- a/templates/search.tpl +++ b/templates/search.tpl @@ -21,7 +21,7 @@ {**************************************************************************} -{if $formulaire==0 and !$xorg_error->errs|count} +{if $formulaire==0 and !$xorg_errors|count} {if !$advanced} {include file='search.quick.form.tpl' show_js=1} {else}