From 92018b9a63a36fc5ebc7303c3e87ed83065cbdf4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20D=C3=BCsterhus?= Date: Thu, 8 Mar 2012 21:27:54 +0100 Subject: [PATCH] Optimizing reading of smilies. --- file/lib/page/ChatPage.class.php | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/file/lib/page/ChatPage.class.php b/file/lib/page/ChatPage.class.php index 0023607..37e7c48 100644 --- a/file/lib/page/ChatPage.class.php +++ b/file/lib/page/ChatPage.class.php @@ -87,18 +87,10 @@ public function readData() { $this->newestMessages = chat\message\ChatMessageList::getNewestMessages($this->room, CHAT_LASTMESSAGES); \wcf\util\ChatUtil::writeUserData(array('lastSeen' => end($this->newestMessages)->messageID)); - $this->readDefaultSmileys(); + $this->smilies = \wcf\data\smiley\SmileyCache::getInstance()->getCategorySmilies(); $this->readChatVersion(); } - /** - * Reads the smilies in the default category. - */ - public function readDefaultSmileys() { - $smilies = \wcf\data\smiley\SmileyCache::getInstance()->getSmilies(); - $this->smilies = $smilies[null]; - } - /** * @see \wcf\page\IPage::readParameters() */