1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2024-12-22 21:40:08 +00:00

Read Smilies from default category.

This commit is contained in:
Tim Düsterhus 2011-11-27 13:07:53 +01:00
parent 0e25a9b821
commit 3314249c44

View File

@ -18,6 +18,7 @@ class ChatPage extends AbstractPage {
public $room = null; public $room = null;
public $roomID = 0; public $roomID = 0;
public $rooms = array(); public $rooms = array();
public $smilies = array();
/** /**
* @see \wcf\page\IPage::assignVariables() * @see \wcf\page\IPage::assignVariables()
@ -28,7 +29,8 @@ public function assignVariables() {
WCF::getTPL()->assign(array( WCF::getTPL()->assign(array(
'room' => $this->room, 'room' => $this->room,
'roomID' => $this->roomID, 'roomID' => $this->roomID,
'rooms' => $this->rooms 'rooms' => $this->rooms,
'smilies' => $this->smilies
)); ));
} }
@ -66,6 +68,9 @@ public function readData() {
'color1' => 0xFF0000, 'color1' => 0xFF0000,
'color2' => 0x00FF00 'color2' => 0x00FF00
)); ));
$smilies = \wcf\data\smiley\SmileyCache::getInstance()->getSmilies();
$this->smilies = $smilies[null];
} }
/** /**