summaryrefslogtreecommitdiff
path: root/inc/display.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/display.php')
-rw-r--r--inc/display.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/inc/display.php b/inc/display.php
index 63446305..f6cfafdc 100644
--- a/inc/display.php
+++ b/inc/display.php
@@ -226,6 +226,13 @@
else
$built .= ' <a title="Make thread sticky" href="?/b/sticky/' . $this->id . '">' . MOD_LINK_STICKY . '</a>';
+ // Lock
+ if($this->mod['type'] >= MOD_LOCK)
+ if($this->sticky)
+ $built .= ' <a title="Lock thread" href="?/b/unlock/' . $this->id . '">' . MOD_LINK_UNLOCK . '</a>';
+ else
+ $built .= ' <a title="Unlock thread" href="?/b/lock/' . $this->id . '">' . MOD_LINK_LOCK . '</a>';
+
$built .= '</span>';
}