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:
parent
0e25a9b821
commit
3314249c44
@ -18,6 +18,7 @@ class ChatPage extends AbstractPage {
|
||||
public $room = null;
|
||||
public $roomID = 0;
|
||||
public $rooms = array();
|
||||
public $smilies = array();
|
||||
|
||||
/**
|
||||
* @see \wcf\page\IPage::assignVariables()
|
||||
@ -28,7 +29,8 @@ public function assignVariables() {
|
||||
WCF::getTPL()->assign(array(
|
||||
'room' => $this->room,
|
||||
'roomID' => $this->roomID,
|
||||
'rooms' => $this->rooms
|
||||
'rooms' => $this->rooms,
|
||||
'smilies' => $this->smilies
|
||||
));
|
||||
}
|
||||
|
||||
@ -66,6 +68,9 @@ public function readData() {
|
||||
'color1' => 0xFF0000,
|
||||
'color2' => 0x00FF00
|
||||
));
|
||||
|
||||
$smilies = \wcf\data\smiley\SmileyCache::getInstance()->getSmilies();
|
||||
$this->smilies = $smilies[null];
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user