aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
authormistic100 <mistic@piwigo.org>2012-04-28 18:20:00 +0000
committermistic100 <mistic@piwigo.org>2012-04-28 18:20:00 +0000
commita83ffc1d39c57c9cb8f34b6adc7b00fcfbb3ce25 (patch)
tree60831a1539167d4594e8f1a2337c5fa792118bc5 /admin
parent5eab3e976214397fecb52743ac48070c9a4cee18 (diff)
redirect after changing album properties, in order to refresh display
git-svn-id: http://piwigo.org/svn/trunk@14506 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--admin/cat_modify.php10
1 files changed, 9 insertions, 1 deletions
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