Changeset 6508


Ignore:
Timestamp:
06/09/10 21:13:02 (10 years ago)
Author:
rvelices
Message:

merge r6507 from trunk
optim: replace html_options call in picture.tpl with a foreach (html_options loads several smarty files which is overkill for one single use for admins only

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.1/themes/default/template/picture.tpl

    r6025 r6508  
    241241</script> 
    242242        <select onchange="setPrivacyLevel(this, '{$ROOT_URL|@escape:'javascript'}', {$current.id}, this.options[selectedIndex].value)"> 
    243           {html_options options=$available_permission_levels selected=$current.level} 
     243                {foreach from=$available_permission_levels item=label key=level} 
     244                <option label="{$label}" value="{$level}"{if $level == $current.level} selected="selected"{/if}>{$label}</option> 
     245                {/foreach} 
    244246        </select> 
    245247        </td></tr> 
Note: See TracChangeset for help on using the changeset viewer.