fixes
authorx2000habouzit <x2000habouzit>
Tue, 24 Aug 2004 20:05:34 +0000 (20:05 +0000)
committerx2000habouzit <x2000habouzit>
Tue, 24 Aug 2004 20:05:34 +0000 (20:05 +0000)
htdocs/search.php
templates/newsletter.tpl
templates/skin/common.devel.tpl

index cd809e2..84e3afd 100644 (file)
@@ -32,7 +32,7 @@ if (array_key_exists('rechercher', $_REQUEST)) {
     $fields = new SFieldGroup(true,array($nameField,$firstnameField,$promo1Field,$promo2Field));
     
     if ($nameField->length()<2 && $firstnameField->length()<2 && 
-        ($public_directory || !$promo1Field->is_a_single_promo()))
+        (!logged() || !$promo1Field->is_a_single_promo()))
     {
        new ThrowError('Recherche trop générale.');
     }
@@ -65,7 +65,7 @@ if (array_key_exists('rechercher', $_REQUEST)) {
 
     $page->mysql_assign($sql, 'resultats', 'nb_resultats','nb_resultats_total');
     
-    if ($public_directory &&
+    if (!logged() &&
        $page->get_template_vars('nb_resultats_total')>$globals->public_max_search_results)
     {
        new ThrowError('Votre recherche a généré trop de résultats pour un affichage public.');
index a6866ec..41eff94 100644 (file)
@@ -1,4 +1,4 @@
-{* $Id: newsletter.tpl,v 1.4 2004-07-17 11:23:09 x2000habouzit Exp $ *}
+{* $Id: newsletter.tpl,v 1.5 2004-08-24 20:05:35 x2000habouzit Exp $ *}
 
 {dynamic}
 
@@ -17,7 +17,7 @@
   </tr>
   <tr>
     <td style="padding: 1em;">
-      <tt>{$nl_text|replace:" ":"&nbsp;"|nl2br}</tt>
+      <tt>{$nl_text|smarty:nodefaults|replace:" ":"&nbsp;"|nl2br}</tt>
     </td>
   </tr>
 </table>
index 125d7c5..8f39576 100644 (file)
@@ -1,4 +1,4 @@
-{* $Id: common.devel.tpl,v 1.1 2004-02-20 11:44:07 x2000habouzit Exp $ *}
+{* $Id: common.devel.tpl,v 1.2 2004-08-24 20:05:35 x2000habouzit Exp $ *}
 
 {if $validate}
   <div id="dev">
@@ -21,7 +21,7 @@
       Trace de l'exécution de cette page sur mysql (hover me)
     </div>
     <div class="hide">
-  {$db_trace}
+      {$db_trace|smarty:nodefaults}
     </div>
   </div>
 {/if}