Removes notices.
authorStéphane Jacob <sj@m4x.org>
Mon, 9 Aug 2010 00:38:41 +0000 (02:38 +0200)
committerStéphane Jacob <sj@m4x.org>
Sat, 21 Aug 2010 08:56:19 +0000 (10:56 +0200)
Signed-off-by: Stéphane Jacob <sj@m4x.org>
templates/include/field.select.tpl

index d1c00bb..a079ab4 100644 (file)
 {*                                                                        *}
 {**************************************************************************}
 
-{if $with_text_value}
+{if t($with_text_value)}
 <div>
 {/if}
-<select name="{$name}"{if $onchange} onchange="{$onchange}"{/if}{if $id} id="{$id}"{/if}>
+<select name="{$name}"{if t($onchange)} onchange="{$onchange}"{/if}{if t($id)} id="{$id}"{/if}>
     <option value=""> - </option>
   {iterate from=$list item='option'}
     <option value="{$option.id}">{$option.field|htmlspecialchars}</option>
   {/iterate}
 </select>
-{if $with_text_value}
+{if t($with_text_value)}
 <input type="hidden" value="" name="{$name}Txt" />
 </div>
 {/if}