mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2024-10-31 14:10:08 +00:00
Adding $this->room again
This commit is contained in:
parent
ca6ae69eff
commit
366b7207ca
@ -23,6 +23,7 @@ class ChatRefreshRoomListPage extends AbstractPage {
|
||||
* @see \wcf\page\AbstractPage::$neededPermissions
|
||||
*/
|
||||
public $neededPermissions = array('user.chat.canEnter');
|
||||
public $room = null;
|
||||
public $rooms = array();
|
||||
|
||||
/**
|
||||
@ -39,8 +40,8 @@ public function readData() {
|
||||
$this->rooms = chat\room\ChatRoom::getCache();
|
||||
|
||||
$roomID = \wcf\util\ChatUtil::readUserData('roomID');
|
||||
$room = $this->rooms->search($roomID);
|
||||
if (!$room) throw new \wcf\system\exception\IllegalLinkException();
|
||||
$this->room = $this->rooms->search($roomID);
|
||||
if (!$this->room) throw new \wcf\system\exception\IllegalLinkException();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user