From 12dbce5d3ea4300157a9f3bada53ec4c65cf6594 Mon Sep 17 00:00:00 2001 From: Matias Griese Date: Mon, 9 Apr 2012 23:37:53 +0300 Subject: [PATCH] Fix regression: Fatal error in topic --- components/com_kunena/views/category/view.html.php | 2 +- components/com_kunena/views/topic/view.html.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/components/com_kunena/views/category/view.html.php b/components/com_kunena/views/category/view.html.php index b0c7bed006..dc66db5457 100644 --- a/components/com_kunena/views/category/view.html.php +++ b/components/com_kunena/views/category/view.html.php @@ -327,7 +327,7 @@ function fillCategoryInfo($matches) { function displayCategories() { if ($this->sections) { $this->subcategories = true; - $this->displayTemplateFile('subcategories'); + echo $this->loadTemplateFile('subcategories'); } } diff --git a/components/com_kunena/views/topic/view.html.php b/components/com_kunena/views/topic/view.html.php index 960014b5dd..6f752d42fa 100644 --- a/components/com_kunena/views/topic/view.html.php +++ b/components/com_kunena/views/topic/view.html.php @@ -548,7 +548,7 @@ function getMessageProfileBox() { } function displayMessageContents() { - $this->displayTemplateFile('message'); + echo $this->loadTemplateFile('message'); } function displayTopicActions($location=0) { @@ -821,7 +821,7 @@ function displayThreadHistory() { $dispatcher->trigger('onKunenaPrepare', array ('kunena.messages', &$this->history, &$params, 0)); - $this->displayTemplateFile ( 'history' ); + echo $this->loadTemplateFile ( 'history' ); } function redirectBack() { @@ -842,7 +842,7 @@ public function getNumLink($mesid, $replycnt) { function displayAttachments($message=null) { if ($message instanceof KunenaForumMessage) { $this->attachments = $message->getAttachments(); - if (!empty($this->attachments)) $this->displayTemplateFile ( 'attachments' ); + if (!empty($this->attachments)) echo $this->loadTemplateFile ( 'attachments' ); } else { echo JText::_('COM_KUNENA_ATTACHMENTS_ERROR_NO_MESSAGE'); }