Changeset 22403


Ignore:
Timestamp:
04/29/13 16:57:33 (7 years ago)
Author:
plg
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/picture.php

    r21818 r22403  
    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.