From 1edebf3db2366130b2e781a6d031703af878ff56 Mon Sep 17 00:00:00 2001 From: plegall Date: Mon, 29 Apr 2013 14:57:33 +0000 Subject: merge r22402 from branch 2.5 to trunk bug 2894 fixed: make sure all users cache is reset when an admin changes the album thumbnail. git-svn-id: http://piwigo.org/svn/trunk@22403 68402e56-0260-453c-a942-63ccdbb3a9ee --- picture.php | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/picture.php b/picture.php index ea22c8751..6b4bf0773 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); -- cgit v1.2.3