mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-05-04 12:32:48 +02:00
improve task:0000902:
- add image del_all_favorites.png - make a redirect after delete git-svn-id: http://piwigo.org/svn/trunk@3039 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -380,13 +380,15 @@ SELECT DISTINCT image_id
|
||||
)
|
||||
);
|
||||
|
||||
if (!empty($_GET['action']) && ($_GET['action'] == 'remove_all_from_favorites'))
|
||||
if (!empty($_GET['action'])
|
||||
&& ($_GET['action'] == 'remove_all_from_favorites'))
|
||||
{
|
||||
$query = '
|
||||
DELETE FROM '.FAVORITES_TABLE.'
|
||||
WHERE user_id = '.$user['id'].'
|
||||
;';
|
||||
pwg_query($query);
|
||||
redirect('index.php?/favorites');
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
BIN
template/yoga/icon/del_all_favorites.png
Normal file
BIN
template/yoga/icon/del_all_favorites.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.4 KiB |
Reference in New Issue
Block a user