diff options
author | nikrou <nikrou@piwigo.org> | 2009-01-03 19:38:53 +0000 |
---|---|---|
committer | nikrou <nikrou@piwigo.org> | 2009-01-03 19:38:53 +0000 |
commit | 72b2c126c4c73dc32fc57f43bc2b26069df99d87 (patch) | |
tree | 7b249684380a95f5d1b7a4f42e8bb1ab864d626e | |
parent | b225a52b918168cf00e0cd275f62bbca624d4833 (diff) |
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
Diffstat (limited to '')
-rw-r--r-- | include/section_init.inc.php | 4 | ||||
-rw-r--r-- | template/yoga/icon/del_all_favorites.png | bin | 0 -> 1424 bytes |
2 files changed, 3 insertions, 1 deletions
diff --git a/include/section_init.inc.php b/include/section_init.inc.php index 897b2a01d..4eb444780 100644 --- a/include/section_init.inc.php +++ b/include/section_init.inc.php @@ -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 { diff --git a/template/yoga/icon/del_all_favorites.png b/template/yoga/icon/del_all_favorites.png Binary files differnew file mode 100644 index 000000000..cfc609749 --- /dev/null +++ b/template/yoga/icon/del_all_favorites.png |