1
0
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:
Tim Düsterhus 2012-06-10 18:48:08 +02:00
parent ca6ae69eff
commit 366b7207ca

View File

@ -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();
}
/**