Changeset 343
- Timestamp:
- 03/21/08 18:56:19 (5 years ago)
- Location:
- groupapplymail/files/lib/system
- Files:
-
- 4 modified
-
cache/CacheBuilderGroupApplyMail.class.php (modified) (2 diffs)
-
event/listener/AbstractPageGroupActivityListener.class.php (modified) (1 diff)
-
event/listener/UserGroupApplicationDeleteMailListener.class.php (modified) (2 diffs)
-
event/listener/UserGroupApplyMailListener.class.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
groupapplymail/files/lib/system/cache/CacheBuilderGroupApplyMail.class.php
r321 r343 17 17 $data = array(); 18 18 19 $sql = "SELECT *19 $sql = "SELECT notification.* 20 20 FROM wcf".WCF_N."_group_user_option opt 21 21 NATURAL JOIN wcf".WCF_N."_group_user_notification notification … … 25 25 $id = $row['userID']; 26 26 unset($row['userID']); 27 $data[$id] = $row; 27 if(!isset($data[$id])) { 28 $data[$id] = array(); 29 } 30 $data[$id][] = $row; 28 31 } 29 32 -
groupapplymail/files/lib/system/event/listener/AbstractPageGroupActivityListener.class.php
r341 r343 28 28 if(isset($cache[WCF::getUser()->userID])) { 29 29 WCF::getTPL()->assign(array( 30 ' groupactions' => $cache[WCF::getUser()->userID]30 'activities' => $cache[WCF::getUser()->userID] 31 31 )); 32 32 -
groupapplymail/files/lib/system/event/listener/UserGroupApplicationDeleteMailListener.class.php
r341 r343 21 21 WCF::getDB()->sendQuery($sql); 22 22 23 // update cache24 WCF::getCache()->clear(WBB_DIR.'cache', 'cache.groupapplymail.php');25 WCF::getCache()->addResource('groupapplymail',26 WCF_DIR.'cache/cache.groupapplymail.php',27 WCF_DIR.'lib/system/cache/CacheBuilderGroupApplyMail.class.php');28 29 23 $sql = "INSERT INTO wcf".WCF_N."_group_user_notification 30 24 (userID, groupID, foreignID, messageType, slot1, slot2) … … 46 40 )"; 47 41 WCF::getDB()->sendQuery($sql); 42 43 // update cache 44 WCF::getCache()->clear(WCF_DIR.'cache', 'cache.groupapplymail.php', true); 48 45 } 49 46 } -
groupapplymail/files/lib/system/event/listener/UserGroupApplyMailListener.class.php
r322 r343 43 43 } 44 44 45 if($i > 0) { 46 // update cache 47 WCF::getCache()->clear(WBB_DIR.'cache', 'cache.groupapplymail.php'); 48 WCF::getCache()->addResource('groupapplymail', 49 WCF_DIR.'cache/cache.groupapplymail.php', 50 WCF_DIR.'lib/system/cache/CacheBuilderGroupApplyMail.class.php'); 51 } 45 // update cache 46 WCF::getCache()->clear(WCF_DIR.'cache', 'cache.groupapplymail.php', true); 52 47 53 48 // enable user language … … 62 57 $applicationID = $this->eventObj->group->groupID == 6 ? $this->eventObj->applicationID : "0"; 63 58 64 $sql = " INSERTINTO wcf".WCF_N."_group_user_notification59 $sql = "REPLACE INTO wcf".WCF_N."_group_user_notification 65 60 (userID, groupID, foreignID, messageType, slot1) 66 61 VALUES (
