Skip to content

Commit

Permalink
Merge pull request #512 from mahagr/master
Browse files Browse the repository at this point in the history
Fix regression: Fatal error in topic
  • Loading branch information
mahagr committed Apr 9, 2012
2 parents b293c81 + 12dbce5 commit c24a7fb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion components/com_kunena/views/category/view.html.php
Expand Up @@ -327,7 +327,7 @@ function fillCategoryInfo($matches) {
function displayCategories() {
if ($this->sections) {
$this->subcategories = true;
$this->displayTemplateFile('subcategories');
echo $this->loadTemplateFile('subcategories');
}
}

Expand Down
6 changes: 3 additions & 3 deletions components/com_kunena/views/topic/view.html.php
Expand Up @@ -548,7 +548,7 @@ function getMessageProfileBox() {
}

function displayMessageContents() {
$this->displayTemplateFile('message');
echo $this->loadTemplateFile('message');
}

function displayTopicActions($location=0) {
Expand Down Expand Up @@ -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() {
Expand All @@ -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');
}
Expand Down

0 comments on commit c24a7fb

Please sign in to comment.