Changeset 21817 for trunk/admin


Ignore:
Timestamp:
Mar 24, 2013, 7:46:35 AM (11 years ago)
Author:
rvelices
Message:

feature 2836: display the number of comments/tags in the menubar

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/include/functions.php

    r21567 r21817  
    13681368    $inserts
    13691369    );
     1370  invalidate_user_cache_nb_tags();
    13701371}
    13711372
     
    13981399;';
    13991400  pwg_query($query);
     1401
     1402  invalidate_user_cache_nb_tags();
    14001403}
    14011404
     
    14871490        );
    14881491    }
     1492
     1493    invalidate_user_cache_nb_tags();
    14891494  }
    14901495}
     
    16931698  }
    16941699  trigger_action('invalidate_user_cache', $full);
     1700}
     1701
     1702
     1703function invalidate_user_cache_nb_tags()
     1704{
     1705  global $user;
     1706  unset($user['nb_available_tags']);
     1707  $query = '
     1708UPDATE '.USER_CACHE_TABLE.'
     1709  SET nb_available_tags = NULL';
     1710  pwg_query($query);
    16951711}
    16961712
Note: See TracChangeset for help on using the changeset viewer.