Lock controls on posts

This commit is contained in:
Savetheinternet 2011-01-03 01:58:38 +11:00
parent f5f4d8743e
commit 76cb8b0788

View File

@ -226,6 +226,13 @@
else else
$built .= ' <a title="Make thread sticky" href="?/b/sticky/' . $this->id . '">' . MOD_LINK_STICKY . '</a>'; $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>'; $built .= '</span>';
} }