diff options
author | rvelices <rv-github@modusoptimus.com> | 2010-06-09 19:13:02 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2010-06-09 19:13:02 +0000 |
commit | 54fc109f97284a40cba84b131fcc5948e503bbac (patch) | |
tree | c6384c95c357bcf44b6b08fc2805b0716301403e /themes/default/template | |
parent | 2848ca55bb962f0d26678c4d144fdc59788fc43a (diff) |
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
git-svn-id: http://piwigo.org/svn/branches/2.1@6508 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'themes/default/template')
-rw-r--r-- | themes/default/template/picture.tpl | 4 |
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} |