diff options
Diffstat (limited to '')
-rw-r--r-- | admin.php | 6 | ||||
-rw-r--r-- | admin/cat_list.php | 10 |
2 files changed, 14 insertions, 2 deletions
@@ -90,6 +90,12 @@ else $page['errors'] = array(); $page['infos'] = array(); +if (isset($_SESSION['page_infos'])) +{ + $page['infos'] = array_merge($page['infos'], $_SESSION['page_infos']); + unset($_SESSION['page_infos']); +} + $link_start = PHPWG_ROOT_PATH.'admin.php?page='; $conf_link = $link_start.'configuration&section='; //----------------------------------------------------- template initialization diff --git a/admin/cat_list.php b/admin/cat_list.php index e485a3d21..b75b4d084 100644 --- a/admin/cat_list.php +++ b/admin/cat_list.php @@ -106,9 +106,15 @@ $navigation.= '</a>'; if (isset($_GET['delete']) and is_numeric($_GET['delete'])) { delete_categories(array($_GET['delete'])); - array_push($page['infos'], l10n('Virtual album deleted')); + $_SESSION['page_infos'] = array(l10n('Virtual album 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'])) |