diff options
| author | Savetheinternet <savetheinternet@n0v4.com> | 2011-01-03 01:58:38 +1100 |
|---|---|---|
| committer | Savetheinternet <savetheinternet@n0v4.com> | 2011-01-03 01:58:38 +1100 |
| commit | 76cb8b07883471670e63bc2a441439fa93a1438e (patch) | |
| tree | b2b9c5bd7f61322b869c6f68d697d3459375b570 /inc/display.php | |
| parent | f5f4d8743e2fcc180eeec8c91e5799a2b138012e (diff) | |
Lock controls on posts
Diffstat (limited to 'inc/display.php')
| -rw-r--r-- | inc/display.php | 7 |
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>'; } |
