|
@ -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; |
|
|