aboutsummaryrefslogtreecommitdiffstats
path: root/admin/picture_modify.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2013-12-16 20:18:56 +0000
committerrvelices <rv-github@modusoptimus.com>2013-12-16 20:18:56 +0000
commit29433f1db489462a86eb4c694674fb057c0ea5b2 (patch)
treeeb6467ccd9dd1de696f195b1f00d32fa3306b3df /admin/picture_modify.php
parent5c9b9c43f549357b5c09c402f7e49a6006bb62bc (diff)
invalidate_user_cache fix in web service method + do not invalidate user cache on every page hit on album list, photo etc ...
git-svn-id: http://piwigo.org/svn/trunk@25975 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/picture_modify.php')
-rw-r--r--admin/picture_modify.php12
1 files changed, 7 insertions, 5 deletions
diff --git a/admin/picture_modify.php b/admin/picture_modify.php
index 9c1af0dd4..49cbb705f 100644
--- a/admin/picture_modify.php
+++ b/admin/picture_modify.php
@@ -82,7 +82,7 @@ SELECT category_id
array_from_query($query, 'category_id'),
explode(',', calculate_permissions($user['id'], $user['status']))
);
-
+
foreach ($authorizeds as $category_id)
{
redirect(
@@ -175,12 +175,14 @@ if (isset($_POST['submit']) and count($page['errors']) == 0)
}
move_images_to_categories(array($_GET['image_id']), $_POST['associate']);
+ invalidate_user_cache();
+
// thumbnail for albums
if (!isset($_POST['represent']))
{
$_POST['represent'] = array();
}
-
+
$no_longer_thumbnail_for = array_diff($represent_options_selected, $_POST['represent']);
if (count($no_longer_thumbnail_for) > 0)
{
@@ -199,7 +201,7 @@ UPDATE '.CATEGORIES_TABLE.'
}
$represent_options_selected = $_POST['represent'];
-
+
$page['infos'][] = l10n('Photo informations updated');
}
@@ -320,12 +322,12 @@ SELECT
WHERE element_id = '.$_GET['image_id'].'
;';
list($row['nb_rates']) = pwg_db_fetch_row(pwg_query($query));
-
+
$intro_vars['stats'].= ', '.sprintf(l10n('Rated %d times, score : %.2f'), $row['nb_rates'], $row['rating_score']);
}
$template->assign('INTRO', $intro_vars);
-
+
if (in_array(get_extension($row['path']),$conf['picture_ext']))
{