diff options
| author | czaks <marcin@6irc.net> | 2015-03-10 12:48:59 +0100 |
|---|---|---|
| committer | czaks <marcin@6irc.net> | 2015-03-10 12:48:59 +0100 |
| commit | bdb6001f3f7e93e0b9655c0491bbef6f1df8a5fa (patch) | |
| tree | 4f4007d1b090694746fc6d36a19dd8accfd3f8ca /inc/display.php | |
| parent | eb245c2970062620f349024922f8c48379ffea88 (diff) | |
support for slugified links; may introduce a few bugs
Diffstat (limited to 'inc/display.php')
| -rw-r--r-- | inc/display.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/display.php b/inc/display.php index 1a78e19b..65525ab9 100644 --- a/inc/display.php +++ b/inc/display.php @@ -383,7 +383,7 @@ class Post { public function link($pre = '', $page = false) { global $config, $board; - return $this->root . $board['dir'] . $config['dir']['res'] . sprintf(($page ? $page : $config['file_page']), $this->thread) . '#' . $pre . $this->id; + return $this->root . $board['dir'] . $config['dir']['res'] . link_for((array)$this, $page == '50') . '#' . $pre . $this->id; } public function build($index=false) { @@ -438,7 +438,7 @@ class Thread { public function link($pre = '', $page = false) { global $config, $board; - return $this->root . $board['dir'] . $config['dir']['res'] . sprintf(($page ? $page : $config['file_page']), $this->id) . '#' . $pre . $this->id; + return $this->root . $board['dir'] . $config['dir']['res'] . link_for((array)$this, $page == '50') . '#' . $pre . $this->id; } public function add(Post $post) { $this->posts[] = $post; |
