Changeset 22402


Ignore:
Timestamp:
Apr 29, 2013, 4:57:09 PM (12 years ago)
Author:
plg
Message:

bug 2894 fixed: make sure all users cache is reset when an admin changes the
album thumbnail.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.5/picture.php

    r21039 r22402  
    310310        pwg_query($query);
    311311
    312         $query = '
    313 UPDATE '.USER_CACHE_CATEGORIES_TABLE.'
    314   SET user_representative_picture_id = NULL
    315   WHERE user_id = '.$user['id'].'
    316     AND cat_id = '.$page['category']['id'].'
    317 ;';
    318         pwg_query($query);
     312        include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
     313        invalidate_user_cache();
    319314      }
    320315
Note: See TracChangeset for help on using the changeset viewer.