aboutsummaryrefslogtreecommitdiffstats
path: root/admin/batch_manager_global.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2010-12-31 11:58:14 +0000
committerplegall <plg@piwigo.org>2010-12-31 11:58:14 +0000
commitaa30ee72d24a4eeca69e46be72baf055bf869889 (patch)
treec99fbdce8a694ef41fbc25bf4bbcc0f604ac22b9 /admin/batch_manager_global.php
parentff36bf3b70b58a117b7ccfe72d0f3faf58d97f34 (diff)
feature 2089: add the "not_linked" feature as "with no virtual album" in the
new Batch Manager. git-svn-id: http://piwigo.org/svn/trunk@8403 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/batch_manager_global.php')
-rw-r--r--admin/batch_manager_global.php30
1 files changed, 17 insertions, 13 deletions
diff --git a/admin/batch_manager_global.php b/admin/batch_manager_global.php
index 419ac3c35..d6b793f39 100644
--- a/admin/batch_manager_global.php
+++ b/admin/batch_manager_global.php
@@ -120,6 +120,14 @@ DELETE
$collection,
array($_POST['associate'])
);
+
+ $_SESSION['page_infos'] = array(
+ l10n('Information data registered in database')
+ );
+
+ // let's refresh the page because we the current set might be modified
+ $redirect_url = get_root_url().'admin.php?page='.$_GET['page'];
+ redirect($redirect_url);
}
if ('dissociate' == $action)
@@ -149,20 +157,16 @@ DELETE
';
pwg_query($query);
- // we remove the dissociated images if we are currently displaying the
- // category to dissociate from.
- //
- // TODO we can display the photo of a given album without the $_GET['cat']
- if (is_numeric($_GET['cat']) and $_POST['dissociate'] == $_GET['cat'])
- {
- $page['cat_elements_id'] = array_diff(
- $page['cat_elements_id'],
- $dissociables
- );
- }
+ update_category($_POST['dissociate']);
+
+ $_SESSION['page_infos'] = array(
+ l10n('Information data registered in database')
+ );
+
+ // let's refresh the page because we the current set might be modified
+ $redirect_url = get_root_url().'admin.php?page='.$_GET['page'];
+ redirect($redirect_url);
}
-
- update_category($_POST['dissociate']);
}
// author