summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@tinyboard.org>2011-05-20 22:44:11 +1000
committerSavetheinternet <savetheinternet@tinyboard.org>2011-05-20 22:44:11 +1000
commit65c5e91af235fbc8d348c0d15998fd797944e952 (patch)
treefcc743a9a9dbe7dd2f28c8f7fa0ed9fc67b27184 /inc
parent736b8e3c9fae04cc3e8d77baeb2be0ad48da8dbb (diff)
stop ignoring $config[file_page]...
Diffstat (limited to 'inc')
-rw-r--r--inc/display.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/inc/display.php b/inc/display.php
index b8fd9d0d..965356da 100644
--- a/inc/display.php
+++ b/inc/display.php
@@ -224,7 +224,7 @@
public function link($pre = '') {
global $config, $board;
- return $this->root . $board['dir'] . $config['dir']['res'] . $this->thread . '.html' . '#' . $pre . $this->id;
+ return $this->root . $board['dir'] . $config['dir']['res'] . sprintf($config['file_page'], $this->thread) . '#' . $pre . $this->id;
}
public function postControls() {
global $board, $config;
@@ -409,7 +409,7 @@
public function link($pre = '') {
global $config, $board;
- return $this->root . $board['dir'] . $config['dir']['res'] . $this->id . '.html' . '#' . $pre . $this->id;
+ return $this->root . $board['dir'] . $config['dir']['res'] . sprintf($config['file_page'], $this->id) . '#' . $pre . $this->id;
}
public function add(Post $post) {
$this->posts[] = $post;
@@ -535,7 +535,7 @@
// Locked
($this->locked ? '<img class="icon" title="Locked" src="' . $config['image_locked'] . '" />' : '') .
// [Reply]
- ($index ? '<a href="' . $this->root . $board['dir'] . $config['dir']['res'] . $this->id . '.html">[Reply]</a>' : '') .
+ ($index ? '<a href="' . $this->root . $board['dir'] . $config['dir']['res'] . sprintf($config['file_page'], $this->id) . '">[Reply]</a>' : '') .
// Mod controls
$this->postControls() .