Changeset 322
- Timestamp:
- 03/12/08 22:31:38 (5 years ago)
- Location:
- groupapplymail/files/lib/system/event/listener
- Files:
-
- 3 modified
-
AbstractPageGroupActivityListener.class.php (modified) (1 diff)
-
UserGroupApplicationDeleteMailListener.class.php (modified) (1 diff)
-
UserGroupApplyMailListener.class.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
groupapplymail/files/lib/system/event/listener/AbstractPageGroupActivityListener.class.php
r321 r322 19 19 if(self::$check || WCF::getUser()->userID == 0) return; 20 20 self::$check = true; 21 22 $data = array();23 21 24 $sql = "SELECT * 25 FROM wcf".WCF_N."_group_user_notification 26 WHERE userID = ".WCF::getUser()->userID; 27 28 $result = WCF::getDB()->sendQuery($sql); 29 while ($row = WCF::getDB()->fetchArray($result)) { 30 $data[] = $row; 31 } 32 33 //WCF::getCache()->addResource('groupapplymail', 34 // WCF_DIR.'cache/cache.groupapplymail.php', 35 // WCF_DIR.'lib/system/cache/CacheBuilderGroupApplyMail.class.php'); 22 WCF::getCache()->addResource('groupapplymail', 23 WCF_DIR.'cache/cache.groupapplymail.php', 24 WCF_DIR.'lib/system/cache/CacheBuilderGroupApplyMail.class.php'); 36 25 37 $ all= WCF::getCache()->get('groupapplymail');26 $cache = WCF::getCache()->get('groupapplymail'); 38 27 39 28 WCF::getTPL()->assign(array( 40 'groupactions' => $ all[WCF::getUser()->userID];29 'groupactions' => $cache[WCF::getUser()->userID]; 41 30 )); 42 31 -
groupapplymail/files/lib/system/event/listener/UserGroupApplicationDeleteMailListener.class.php
r321 r322 22 22 23 23 // update cache 24 WCF::getCache()->clear(WBB_DIR.'cache', 'cache.groupapplymail.php'); 24 25 WCF::getCache()->addResource('groupapplymail', 25 26 WCF_DIR.'cache/cache.groupapplymail.php', -
groupapplymail/files/lib/system/event/listener/UserGroupApplyMailListener.class.php
r321 r322 45 45 if($i > 0) { 46 46 // update cache 47 WCF::getCache()->clear(WBB_DIR.'cache', 'cache.groupapplymail.php'); 47 48 WCF::getCache()->addResource('groupapplymail', 48 49 WCF_DIR.'cache/cache.groupapplymail.php',
