aboutsummaryrefslogtreecommitdiffstats
path: root/picture.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2013-04-29 14:57:09 +0000
committerplegall <plg@piwigo.org>2013-04-29 14:57:09 +0000
commitf4c7ad9c4667dd0ec4778a8e5e85b0914681fe54 (patch)
tree4f362d78f3300b171fb4efd5482a0068764bf667 /picture.php
parent8f857e0d41575932179d8ef67a71fe85017f6b2c (diff)
bug 2894 fixed: make sure all users cache is reset when an admin changes the
album thumbnail. git-svn-id: http://piwigo.org/svn/branches/2.5@22402 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'picture.php')
-rw-r--r--picture.php9
1 files changed, 2 insertions, 7 deletions
diff --git a/picture.php b/picture.php
index 092b2aed2..464a63de0 100644
--- a/picture.php
+++ b/picture.php
@@ -309,13 +309,8 @@ UPDATE '.CATEGORIES_TABLE.'
;';
pwg_query($query);
- $query = '
-UPDATE '.USER_CACHE_CATEGORIES_TABLE.'
- SET user_representative_picture_id = NULL
- WHERE user_id = '.$user['id'].'
- AND cat_id = '.$page['category']['id'].'
-;';
- pwg_query($query);
+ include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
+ invalidate_user_cache();
}
redirect($url_self);