From 9df6ca8dddb8dabfa30069cdf5f1e0bb45cea793 Mon Sep 17 00:00:00 2001 From: 8chan Date: Tue, 24 Jun 2014 19:40:16 +0000 Subject: [PATCH] Fix issue #45 --- inc/display.php | 8 ++++---- templates/post_reply.html | 4 ++-- templates/post_thread.html | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/inc/display.php b/inc/display.php index e5ce1da1..9397b4a9 100644 --- a/inc/display.php +++ b/inc/display.php @@ -380,10 +380,10 @@ class Post { $this->body ); } - public function link($pre = '') { + public function link($pre = '', $page = false) { global $config, $board; - return $this->root . $board['dir'] . $config['dir']['res'] . sprintf($config['file_page'], $this->thread) . '#' . $pre . $this->id; + return $this->root . $board['dir'] . $config['dir']['res'] . sprintf(($page ? $page : $config['file_page']), $this->thread) . '#' . $pre . $this->id; } public function build($index=false) { @@ -435,10 +435,10 @@ class Thread { $this->body ); } - public function link($pre = '') { + public function link($pre = '', $page = false) { global $config, $board; - return $this->root . $board['dir'] . $config['dir']['res'] . sprintf($config['file_page'], $this->id) . '#' . $pre . $this->id; + return $this->root . $board['dir'] . $config['dir']['res'] . sprintf(($page ? $page : $config['file_page']), $this->id) . '#' . $pre . $this->id; } public function add(Post $post) { $this->posts[] = $post; diff --git a/templates/post_reply.html b/templates/post_reply.html index 8c182ad4..e7343230 100644 --- a/templates/post_reply.html +++ b/templates/post_reply.html @@ -12,8 +12,8 @@ {% include 'post/time.html' %} {% include 'post/poster_id.html' %}  - No. - {{ post.id }} + No. + {{ post.id }}

{% include 'post/fileinfo.html' %} {% include 'post/post_controls.html' %} diff --git a/templates/post_thread.html b/templates/post_thread.html index 882015ba..aa0f1f78 100644 --- a/templates/post_thread.html +++ b/templates/post_thread.html @@ -15,8 +15,8 @@ {% include 'post/time.html' %} {% include 'post/poster_id.html' %}  - No. - {{ post.id }} + No. + {{ post.id }} {% if post.sticky %} {% if config.font_awesome %}