aboutsummaryrefslogtreecommitdiffstats
path: root/themes/default
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2010-06-09 19:12:10 +0000
committerrvelices <rv-github@modusoptimus.com>2010-06-09 19:12:10 +0000
commit80f2c704c9bd467dfc1670e43d883a67d531d955 (patch)
tree73ff6e163bb91942885017856e43ab72d9a0d72b /themes/default
parent450ba045e7dded1449d39744978153d5c613032e (diff)
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
Diffstat (limited to 'themes/default')
-rw-r--r--themes/default/template/picture.tpl4
1 files changed, 3 insertions, 1 deletions
diff --git a/themes/default/template/picture.tpl b/themes/default/template/picture.tpl
index 39ef2ee9d..7e9a796ea 100644
--- a/themes/default/template/picture.tpl
+++ b/themes/default/template/picture.tpl
@@ -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}