aboutsummaryrefslogtreecommitdiffstats
path: root/themes/default/template
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2010-04-30 22:38:17 +0000
committerplegall <plg@piwigo.org>2010-04-30 22:38:17 +0000
commit10dac9de37eee9b73964e8370eb39333b7760c0c (patch)
treee09eb98cd0e582064453c1c0091224c6bb6ac698 /themes/default/template
parent7e82d545d50bcdc23eb260e5402a39e04c3ab348 (diff)
bug 1637: make the privacy level the same everywher, use "who can see this photo?"
instead of "minimum privacy level". git-svn-id: http://piwigo.org/svn/trunk@6025 68402e56-0260-453c-a942-63ccdbb3a9ee
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}