Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix regression: Fatal error in topic #512

Merged
merged 1 commit into from Apr 9, 2012
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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