diff options
author | nikrou <nikrou@piwigo.org> | 2010-03-19 20:47:54 +0000 |
---|---|---|
committer | nikrou <nikrou@piwigo.org> | 2010-03-19 20:47:54 +0000 |
commit | 7c6d4d7a0e4fbefa5895190a082397c350beddc3 (patch) | |
tree | cf3eb342f61d8963d294c16df24812fbd9a8a03f /admin | |
parent | 4c461f36b167641fd7e0182d8c2a88f578c14e58 (diff) |
remove picture delete displayed twice
redirect after delete to avoid errors
git-svn-id: http://piwigo.org/svn/trunk@5193 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | admin/cat_list.php | 1 | ||||
-rw-r--r-- | admin/themes/default/template/cat_list.tpl | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/admin/cat_list.php b/admin/cat_list.php index 57abe3f85..7168b3fd0 100644 --- a/admin/cat_list.php +++ b/admin/cat_list.php @@ -80,6 +80,7 @@ if (isset($_GET['delete']) and is_numeric($_GET['delete']) and !is_adviser()) delete_categories(array($_GET['delete'])); array_push($page['infos'], l10n('Virtual category deleted')); update_global_rank(); + redirect(get_root_url().'admin.php?page=cat_list'); } // request to add a virtual category else if (isset($_POST['submitAdd'])) diff --git a/admin/themes/default/template/cat_list.tpl b/admin/themes/default/template/cat_list.tpl index 30b517a7b..431845d2a 100644 --- a/admin/themes/default/template/cat_list.tpl +++ b/admin/themes/default/template/cat_list.tpl @@ -61,7 +61,7 @@ <li><a href="{$category.U_MANAGE_PERMISSIONS}" title="{'Permissions'|@translate}" ><img src="{$themeconf.admin_icon_dir}/category_Permissions.png" class="button" alt="{'Permissions'|@translate}"></a></li> {/if} {if isset($category.U_DELETE) } - <li><a href="{$category.U_DELETE}" title="{'Are you sure?'|@translate|@escape:javascript}');"><img src="{$themeconf.admin_icon_dir}/category_delete.png" class="button" alt="{'delete'|@translate}" onclick="return confirm('{'Are you sure?'|@translate|@escape:javascript}');"><img src="{$themeconf.admin_icon_dir}/category_delete.png" class="button" alt="{'delete'|@translate}"></a></li> + <li><a href="{$category.U_DELETE}" onclick="return confirm('{'Are you sure?'|@translate|@escape:javascript}');"><img src="{$themeconf.admin_icon_dir}/category_delete.png" class="button" alt="{'delete'|@translate}"></a></li> {/if} </ul> |