mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2024-12-22 21:40:08 +00:00
Fix PHP 5.3 compatability
This commit is contained in:
parent
a8fb9c35f5
commit
1b077719b8
@ -84,12 +84,14 @@ class ChatPage extends \wcf\page\AbstractPage {
|
||||
public function assignVariables() {
|
||||
parent::assignVariables();
|
||||
|
||||
$reflection = new \ReflectionClass('\chat\data\message\Message');
|
||||
|
||||
WCF::getTPL()->assign(array(
|
||||
'room' => $this->room,
|
||||
'roomID' => $this->roomID,
|
||||
'rooms' => $this->rooms,
|
||||
'commands' => $this->commands,
|
||||
'messageTypes' => (new \ReflectionClass('\chat\data\message\Message'))->getConstants(),
|
||||
'messageTypes' => $reflection->getConstants(),
|
||||
'defaultSmilies' => $this->defaultSmilies,
|
||||
'smileyCategories' => $this->smileyCategories,
|
||||
'sidebarCollapsed' => \wcf\system\user\collapsible\content\UserCollapsibleContentHandler::getInstance()->isCollapsed('com.woltlab.wcf.collapsibleSidebar', 'be.bastelstu.chat.ChatPage'),
|
||||
|
Loading…
Reference in New Issue
Block a user