Lock controls on posts
This commit is contained in:
parent
f5f4d8743e
commit
76cb8b0788
@ -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>';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user