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

git-svn-id: http://piwigo.org/svn/trunk@6507 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
rvelices
2010-06-09 19:12:10 +00:00
parent 450ba045e7
commit 80f2c704c9
+3 -1
View File
@@ -240,7 +240,9 @@ y.callService(
}{/literal}
</script>
<select onchange="setPrivacyLevel(this, '{$ROOT_URL|@escape:'javascript'}', {$current.id}, this.options[selectedIndex].value)">
{html_options options=$available_permission_levels selected=$current.level}
{foreach from=$available_permission_levels item=label key=level}
<option label="{$label}" value="{$level}"{if $level == $current.level} selected="selected"{/if}>{$label}</option>
{/foreach}
</select>
</td></tr>
{/if}