From 7bfead22c9baa7ed0ca0562adc716c7325adc806 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20D=C3=BCsterhus?= Date: Mon, 11 Mar 2013 14:04:31 +0100 Subject: [PATCH] Fix bugs --- file/lib/form/ChatForm.class.php | 4 ++-- template/chat.tpl | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/file/lib/form/ChatForm.class.php b/file/lib/form/ChatForm.class.php index 2e71210..20b324a 100644 --- a/file/lib/form/ChatForm.class.php +++ b/file/lib/form/ChatForm.class.php @@ -218,9 +218,9 @@ public function save() { )); $this->objectAction->executeAction(); $returnValues = $this->objectAction->getReturnValues(); - + // add activity points - \wcf\system\user\activity\point\UserActivityPointHandler::getInstance()->fireEvent('be.bastelstu.chat.activityPointEvent.message', $returnValues->messageID, WCF::getUser()->userID); + \wcf\system\user\activity\point\UserActivityPointHandler::getInstance()->fireEvent('be.bastelstu.chat.activityPointEvent.message', $returnValues['returnValues']->messageID, WCF::getUser()->userID); $this->saved(); } diff --git a/template/chat.tpl b/template/chat.tpl index 3e81d86..f6419e6 100644 --- a/template/chat.tpl +++ b/template/chat.tpl @@ -4,7 +4,7 @@ {$room} - {lang}chat.general.title{/lang} - {PAGE_TITLE|language} {include file='headInclude' sandbox=false} - {include file='javascriptInclude'} + {include file='javascriptInclude' application='chat'}