Fixes php error due to misue of t().
authorStéphane Jacob <sj@m4x.org>
Mon, 21 Feb 2011 14:08:26 +0000 (15:08 +0100)
committerStéphane Jacob <sj@m4x.org>
Mon, 21 Feb 2011 14:14:56 +0000 (15:14 +0100)
Signed-off-by: Stéphane Jacob <sj@m4x.org>
templates/carnet/mescontacts.tpl

index 299d591..927dd77 100644 (file)
@@ -84,7 +84,7 @@
 <form action="carnet/contacts/search#plset_content" method="get">
   <div style="float: right">
       <input type="text" size="30" name="quick" class="quick_search"
-             value="{t($smarty.request.quick)|default:'recherche dans tes contacts'}"
+             value="{if t($smarty.request.quick)}{$smarty.request.quick}{else}recherche dans tes contacts{/if}"
              onfocus="if (this.value == 'recherche dans tes contacts') this.value=''"
              onblur="if (this.value == '') this.value='recherche dans tes contacts'"/>
       {if t($smarty.request.quick)}<a href="carnet/contacts">{icon name=arrow_undo title='Annuler la recherche'}</a>{/if}