aboutsummaryrefslogtreecommitdiffstats
path: root/admin/batch_manager_global.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2012-03-19 11:07:08 +0000
committerplegall <plg@piwigo.org>2012-03-19 11:07:08 +0000
commitadf689b9c977460e05c0c8af719414791d60c5e1 (patch)
treebb1fad3798ec9c5e490b7c8abc0917505b97ebf9 /admin/batch_manager_global.php
parentdb836252cefbd66da3e3a2721a2434d72451e8df (diff)
feature 2596: Batch Manager, improve ergonomy on privacy level filter
git-svn-id: http://piwigo.org/svn/trunk@13646 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/batch_manager_global.php')
-rw-r--r--admin/batch_manager_global.php20
1 files changed, 15 insertions, 5 deletions
diff --git a/admin/batch_manager_global.php b/admin/batch_manager_global.php
index 6242a2dc9..95cddf520 100644
--- a/admin/batch_manager_global.php
+++ b/admin/batch_manager_global.php
@@ -519,15 +519,25 @@ SELECT
// +-----------------------------------------------------------------------+
// privacy level
+foreach ($conf['available_permission_levels'] as $level)
+{
+ $level_options[$level] = l10n(sprintf('Level %d', $level));
+
+ if (0 == $level)
+ {
+ $level_options[$level] = l10n('Everybody');
+ }
+}
$template->assign(
- array(
- 'filter_level_options'=> get_privacy_level_options(),
- 'filter_level_options_selected' => isset($_SESSION['bulk_manager_filter']['level'])
- ? $_SESSION['bulk_manager_filter']['level']
- : 0,
+ array(
+ 'filter_level_options'=> $level_options,
+ 'filter_level_options_selected' => isset($_SESSION['bulk_manager_filter']['level'])
+ ? $_SESSION['bulk_manager_filter']['level']
+ : 0,
)
);
+// tags
if (!empty($_SESSION['bulk_manager_filter']['tags']))
{
$query = '