mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-02 04:15:05 +02:00
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
This commit is contained in:
@@ -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 = '
|
||||
|
||||
Reference in New Issue
Block a user