summaryrefslogtreecommitdiff
path: root/inc/display.php
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@n0v4.com>2011-01-02 22:30:30 +1100
committerSavetheinternet <savetheinternet@n0v4.com>2011-01-02 22:30:30 +1100
commit97e927bef9e5c69ece8f1c78c5dfe1b16493c842 (patch)
tree2e65896783d3b0905ddc2647d6543f3f61c5851a /inc/display.php
parent5c094429d7fdcd6dbac4d1d9ff3d7cb190ad2b53 (diff)
Show locked threads
Diffstat (limited to 'inc/display.php')
-rw-r--r--inc/display.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/inc/display.php b/inc/display.php
index 555b78e8..ddced5c6 100644
--- a/inc/display.php
+++ b/inc/display.php
@@ -170,7 +170,7 @@
class Thread {
public $omitted = 0;
- public function __construct($id, $subject, $email, $name, $trip, $body, $time, $thumb, $thumbx, $thumby, $file, $filex, $filey, $filesize, $filename, $ip, $sticky, $root=ROOT, $mod=false) {
+ public function __construct($id, $subject, $email, $name, $trip, $body, $time, $thumb, $thumbx, $thumby, $file, $filex, $filey, $filesize, $filename, $ip, $sticky, $locked, $root=ROOT, $mod=false) {
$this->id = $id;
$this->subject = utf8tohtml($subject);
$this->email = $email;
@@ -190,6 +190,7 @@
$this->posts = Array();
$this->ip = $ip;
$this->sticky = $sticky;
+ $this->locked = $locked;
$this->root = $root;
$this->mod = $mod;
}
@@ -281,6 +282,8 @@
'<a class="post_no"' . ($index?'':'onclick="citeReply(' . $this->id . ');"') . 'href="' . ($index?$this->root . $board['dir'] . DIR_RES . $this->id . '.html' . '#q' . $this->id:'javascript:void(0);') . '">'.$this->id.'</a>' .
// Sticky
($this->sticky ? '<img class="icon" title="Sticky" src="' . IMAGE_STICKY . '" />' : '') .
+ // Locked
+ ($this->locked ? '<img class="icon" title="Locked" src="' . IMAGE_LOCKED . '" />' : '') .
// [Reply]
($index ? '<a href="' . $this->root . $board['dir'] . DIR_RES . $this->id . '.html">[Reply]</a>' : '') .