aboutsummaryrefslogtreecommitdiffstats
path: root/admin/cat_list.php
diff options
context:
space:
mode:
Diffstat (limited to 'admin/cat_list.php')
-rw-r--r--admin/cat_list.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/admin/cat_list.php b/admin/cat_list.php
index 662edbc88..848df3eb3 100644
--- a/admin/cat_list.php
+++ b/admin/cat_list.php
@@ -87,9 +87,15 @@ $navigation.= '</a>';
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'));
+ $_SESSION['page_infos'] = array(l10n('Virtual category deleted'));
update_global_rank();
- redirect(get_root_url().'admin.php?page=cat_list');
+
+ $redirect_url = get_root_url().'admin.php?page=cat_list';
+ if (isset($_GET['parent_id']))
+ {
+ $redirect_url.= '&parent_id='.$_GET['parent_id'];
+ }
+ redirect($redirect_url);
}
// request to add a virtual category
else if (isset($_POST['submitAdd']))