aboutsummaryrefslogtreecommitdiffstats
path: root/themes/default/template
diff options
context:
space:
mode:
Diffstat (limited to 'themes/default/template')
-rw-r--r--themes/default/template/picture.tpl6
1 files changed, 2 insertions, 4 deletions
diff --git a/themes/default/template/picture.tpl b/themes/default/template/picture.tpl
index 73bd52840..39ef2ee9d 100644
--- a/themes/default/template/picture.tpl
+++ b/themes/default/template/picture.tpl
@@ -222,7 +222,7 @@ y.callService(
{if $display_info.privacy_level and isset($available_permission_levels) }
<tr id="Privacy">
- <td class="label">{'Privacy level'|@translate}:</td>
+ <td class="label">{'Who can see this photo?'|@translate}</td>
<td class="value">
<script type="text/javascript">
{literal}function setPrivacyLevel(selectElement, rootUrl, id, level)
@@ -240,9 +240,7 @@ y.callService(
}{/literal}
</script>
<select onchange="setPrivacyLevel(this, '{$ROOT_URL|@escape:'javascript'}', {$current.id}, this.options[selectedIndex].value)">
- {foreach from=$available_permission_levels item=level}
- <option value="{$level}"{if $current.level==$level} selected="selected"{/if}>{$pwg->l10n($pwg->sprintf('Level %d',$level))}</option>
- {/foreach}
+ {html_options options=$available_permission_levels selected=$current.level}
</select>
</td></tr>
{/if}