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

We have to exit; here, 'cause show does not

That was different in WCF 1.1, wasn't it?
This commit is contained in:
Tim Düsterhus 2011-12-03 17:53:36 +01:00
parent 10509645da
commit d470fc8ebe

View File

@ -165,7 +165,7 @@ public function show() {
// remove index breadcrumb // remove index breadcrumb
WCF::getBreadcrumbs()->remove(0); WCF::getBreadcrumbs()->remove(0);
parent::show(); parent::show();
if ($this->useTemplate) exit;
@header('Content-type: application/json'); @header('Content-type: application/json');
echo \wcf\util\JSON::encode(array( echo \wcf\util\JSON::encode(array(
'topic' => WCF::getLanguage()->get($this->room->topic) 'topic' => WCF::getLanguage()->get($this->room->topic)