aboutsummaryrefslogtreecommitdiffstats
path: root/admin/batch_manager_global.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2010-12-31 12:34:01 +0000
committerplegall <plg@piwigo.org>2010-12-31 12:34:01 +0000
commita9445d297540abff2125393b520509b0f2387132 (patch)
tree56f85ff39878a54618f6d4a4535e2a10c4311aaa /admin/batch_manager_global.php
parentaa30ee72d24a4eeca69e46be72baf055bf869889 (diff)
feature 2089: add the "duplicates" feature to the new Batch Manager and
simplify the algorithm. The duplicates do not rely on physical albums, just on duplicate filenames. git-svn-id: http://piwigo.org/svn/trunk@8404 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/batch_manager_global.php')
-rw-r--r--admin/batch_manager_global.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/admin/batch_manager_global.php b/admin/batch_manager_global.php
index d6b793f39..c374e888d 100644
--- a/admin/batch_manager_global.php
+++ b/admin/batch_manager_global.php
@@ -527,6 +527,13 @@ if (count($page['cat_elements_id']) > 0)
$is_category = true;
}
+ if (isset($_SESSION['bulk_manager_filter']['prefilter'])
+ and 'duplicates' == $_SESSION['bulk_manager_filter']['prefilter'])
+ {
+ $conf['order_by'] = ' ORDER BY file, id';
+ }
+
+
$query = '
SELECT id,path,tn_ext,file,filesize,level,name
FROM '.IMAGES_TABLE;