mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-05-08 14:25:02 +02:00
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:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user