bug 2031 fixed: redirection after category deletion preserves the current

node in the category tree.

+ the confirmation message is displayed after redirect, thanks to session


git-svn-id: http://piwigo.org/svn/branches/2.1@8167 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
plegall
2010-12-17 00:09:34 +00:00
parent 9f97e8fa00
commit ac1ae911bf
2 changed files with 14 additions and 2 deletions

View File

@@ -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