From a83ffc1d39c57c9cb8f34b6adc7b00fcfbb3ce25 Mon Sep 17 00:00:00 2001 From: mistic100 Date: Sat, 28 Apr 2012 18:20:00 +0000 Subject: redirect after changing album properties, in order to refresh display git-svn-id: http://piwigo.org/svn/trunk@14506 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/cat_modify.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/admin/cat_modify.php b/admin/cat_modify.php index d294a0714..eb7513ac1 100644 --- a/admin/cat_modify.php +++ b/admin/cat_modify.php @@ -159,11 +159,13 @@ if (isset($_POST['submit'])) move_categories( array($_GET['cat_id']), $_POST['parent'] ); } - array_push($page['infos'], l10n('Album updated successfully')); + $_SESSION['page_infos'][] = l10n('Album updated successfully'); + $redirect = true; } elseif (isset($_POST['set_random_representant'])) { set_random_representant(array($_GET['cat_id'])); + $redirect = true; } elseif (isset($_POST['delete_representant'])) { @@ -173,6 +175,12 @@ UPDATE '.CATEGORIES_TABLE.' WHERE id = '.$_GET['cat_id'].' ;'; pwg_query($query); + $redirect = true; +} + +if (isset($redirect)) +{ + redirect($admin_album_base_url.'-properties'); } // nullable fields -- cgit v1.2.3