mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-12-18 02:16:03 +01:00
Fix issue #45
This commit is contained in:
parent
4eec65782e
commit
9df6ca8ddd
@ -380,10 +380,10 @@ class Post {
|
|||||||
$this->body
|
$this->body
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
public function link($pre = '') {
|
public function link($pre = '', $page = false) {
|
||||||
global $config, $board;
|
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) {
|
public function build($index=false) {
|
||||||
@ -435,10 +435,10 @@ class Thread {
|
|||||||
$this->body
|
$this->body
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
public function link($pre = '') {
|
public function link($pre = '', $page = false) {
|
||||||
global $config, $board;
|
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) {
|
public function add(Post $post) {
|
||||||
$this->posts[] = $post;
|
$this->posts[] = $post;
|
||||||
|
@ -12,8 +12,8 @@
|
|||||||
{% include 'post/time.html' %}
|
{% include 'post/time.html' %}
|
||||||
</label>
|
</label>
|
||||||
{% include 'post/poster_id.html' %}
|
{% include 'post/poster_id.html' %}
|
||||||
<a class="post_no" id="post_no_{{ post.id }}" onclick="highlightReply({{ post.id }})" href="{{ post.link }}">No.</a>
|
<a class="post_no" id="post_no_{{ post.id }}" onclick="highlightReply({{ post.id }})" href="{% if isnoko50 %}{{ post.link('', config.file_page50) }}{% else %}{{ post.link }}{% endif %}">No.</a>
|
||||||
<a class="post_no" onclick="citeReply({{ post.id }})" href="{{ post.link('q') }}">{{ post.id }}</a>
|
<a class="post_no" onclick="citeReply({{ post.id }})" href="{% if isnoko50 %}{{ post.link('q', config.file_page50) }}{% else %}{{ post.link('q') }}{% endif %}">{{ post.id }}</a>
|
||||||
</p>
|
</p>
|
||||||
{% include 'post/fileinfo.html' %}
|
{% include 'post/fileinfo.html' %}
|
||||||
{% include 'post/post_controls.html' %}
|
{% include 'post/post_controls.html' %}
|
||||||
|
@ -15,8 +15,8 @@
|
|||||||
{% include 'post/time.html' %}
|
{% include 'post/time.html' %}
|
||||||
</label>
|
</label>
|
||||||
{% include 'post/poster_id.html' %}
|
{% include 'post/poster_id.html' %}
|
||||||
<a class="post_no" id="post_no_{{ post.id }}" onclick="highlightReply({{ post.id }})" href="{{ post.link }}">No.</a>
|
<a class="post_no" id="post_no_{{ post.id }}" onclick="highlightReply({{ post.id }})" href="{% if isnoko50 %}{{ post.link('', config.file_page50) }}{% else %}{{ post.link }}{% endif %}">No.</a>
|
||||||
<a class="post_no" onclick="citeReply({{ post.id }})" href="{{ post.link('q') }}">{{ post.id }}</a>
|
<a class="post_no" onclick="citeReply({{ post.id }})" href="{% if isnoko50 %}{{ post.link('q', config.file_page50) }}{% else %}{{ post.link('q') }}{% endif %}">{{ post.id }}</a>
|
||||||
{% if post.sticky %}
|
{% if post.sticky %}
|
||||||
{% if config.font_awesome %}
|
{% if config.font_awesome %}
|
||||||
<i class="fa fa-thumb-tack"></i>
|
<i class="fa fa-thumb-tack"></i>
|
||||||
|
Loading…
Reference in New Issue
Block a user