From ffb215eb476d1344ffd904626288c2553f95355d Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Mon, 10 Oct 2011 22:37:39 +1100 Subject: added "bumplocking" feature --- inc/display.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'inc/display.php') diff --git a/inc/display.php b/inc/display.php index 4377ea3c..655aaf22 100644 --- a/inc/display.php +++ b/inc/display.php @@ -276,7 +276,7 @@ }; class Thread { - public function __construct($id, $subject, $email, $name, $trip, $capcode, $body, $time, $thumb, $thumbx, $thumby, $file, $filex, $filey, $filesize, $filename, $ip, $sticky, $locked, $embed, $root=null, $mod=false, $hr=true) { + public function __construct($id, $subject, $email, $name, $trip, $capcode, $body, $time, $thumb, $thumbx, $thumby, $file, $filex, $filey, $filesize, $filename, $ip, $sticky, $locked, $bumplocked, $embed, $root=null, $mod=false, $hr=true) { global $config; if(!isset($root)) $root = &$config['root']; @@ -302,6 +302,7 @@ $this->ip = $ip; $this->sticky = $sticky; $this->locked = $locked; + $this->bumplocked = $bumplocked; $this->embed = $embed; $this->root = $root; $this->mod = $mod; @@ -357,6 +358,12 @@ else $built .= ' ' . $config['mod']['link_sticky'] . ''; + if(hasPermission($config['mod']['bumplock'], $board['uri'], $this->mod)) + if($this->bumplocked) + $built .= ' ' . $config['mod']['link_bumpunlock'] . ''; + else + $built .= ' ' . $config['mod']['link_bumplock'] . ''; + // Lock if(hasPermission($config['mod']['lock'], $board['uri'], $this->mod)) if($this->locked) -- cgit v1.3