added page title to forum#show

This commit is contained in:
Parziphal 2013-11-03 10:54:13 -05:00
parent ad610e7e46
commit 4385992e00
2 changed files with 1 additions and 1 deletions

View File

@ -132,7 +132,6 @@ class ForumController extends ApplicationController
public function show() public function show()
{ {
$this->forum_post = ForumPost::find($this->params()->id); $this->forum_post = ForumPost::find($this->params()->id);
$this->set_title($this->forum_post->title);
$this->children = ForumPost::where("parent_id = ?", $this->params()->id)->order("id")->paginate($this->page_number(), 30); $this->children = ForumPost::where("parent_id = ?", $this->params()->id)->order("id")->paginate($this->page_number(), 30);
if (!$this->current_user->is_anonymous() && $this->current_user->last_forum_topic_read_at < $this->forum_post->updated_at && $this->forum_post->updated_at < (time() - 3)) { if (!$this->current_user->is_anonymous() && $this->current_user->last_forum_topic_read_at < $this->forum_post->updated_at && $this->forum_post->updated_at < (time() - 3)) {

View File

@ -1,3 +1,4 @@
<?php $this->provide('title', $this->forum_post->title) ?>
<?php if ($this->forum_post->is_locked) : ?> <?php if ($this->forum_post->is_locked) : ?>
<div class="status-notice"> <div class="status-notice">
<p><?= $this->t('.locked') ?></p> <p><?= $this->t('.locked') ?></p>