diff --git a/model/Post.class.php b/model/Post.class.php index 41f64d95..8fedefa8 100644 --- a/model/Post.class.php +++ b/model/Post.class.php @@ -165,7 +165,7 @@ class Post public function hasPrevNext() { - return $this->postType == 'post'; + return $this->postType == 'news'; } public function getAuthorName() diff --git a/view/template/content/post.php b/view/template/content/post.php index c04df8fa..4e2d45b2 100644 --- a/view/template/content/post.php +++ b/view/template/content/post.php @@ -22,6 +22,9 @@
getContentHtml() ?>
+ hasPrevNext()): ?> + $post]) ?> + false]) ?>