aboutsummaryrefslogtreecommitdiffstats
path: root/admin/batch_manager.php
diff options
context:
space:
mode:
authorflop25 <flop25@piwigo.org>2013-07-02 19:59:34 +0000
committerflop25 <flop25@piwigo.org>2013-07-02 19:59:34 +0000
commit46040738d8a4b09c3d45f99047a34a09a89d9233 (patch)
treee1673af87aad61ff42e6e780737d0f5814a81f2d /admin/batch_manager.php
parent251bbd5704ba25a0147b287103eb67f5e90e1734 (diff)
bug:2808
add "Your Favorites" to the filters of the Batch Manager git-svn-id: http://piwigo.org/svn/trunk@23746 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--admin/batch_manager.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/admin/batch_manager.php b/admin/batch_manager.php
index a5c82d061..31fb46c00 100644
--- a/admin/batch_manager.php
+++ b/admin/batch_manager.php
@@ -168,6 +168,19 @@ SELECT element_id
);
}
+ if ('favorites' == $_SESSION['bulk_manager_filter']['prefilter'])
+ {
+ $query = '
+SELECT image_id
+ FROM '.FAVORITES_TABLE.'
+ WHERE user_id = '.$user['id'].'
+;';
+ array_push(
+ $filter_sets,
+ array_from_query($query, 'image_id')
+ );
+ }
+
if ('last import'== $_SESSION['bulk_manager_filter']['prefilter'])
{
$query = '