diff options
| author | Michael Save <savetheinternet@tinyboard.org> | 2012-02-15 20:11:09 +1100 |
|---|---|---|
| committer | Michael Save <savetheinternet@tinyboard.org> | 2012-02-15 20:11:09 +1100 |
| commit | 3f1c279ce31ed9e70b85c62cf4dc7e58de2ad321 (patch) | |
| tree | e9fed60f2d64244b478ab3fdb0190ac28928455b /inc/display.php | |
| parent | e3f322e2135b6010e7c89a27122b96584acfd1a5 (diff) | |
experimental post editing (for mods)
Diffstat (limited to 'inc/display.php')
| -rw-r--r-- | inc/display.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/inc/display.php b/inc/display.php index b8a91676..f307bb91 100644 --- a/inc/display.php +++ b/inc/display.php @@ -287,6 +287,10 @@ if(!empty($this->file) && hasPermission($config['mod']['deletefile'], $board['uri'], $this->mod)) $built .= ' <a title="Remove file" href="?/' . $board['uri'] . '/deletefile/' . $this->id . '">' . $config['mod']['link_deletefile'] . '</a>'; + // Edit post + if(hasPermission($config['mod']['editpost'], $board['uri'], $this->mod)) + $built .= ' <a title="Edit post" href="?/' . $board['uri'] . '/edit/' . $this->id . '">' . $config['mod']['link_editpost'] . '</a>'; + if(!empty($built)) $built = '<span class="controls">' . $built . '</span>'; } @@ -399,6 +403,10 @@ if(hasPermission($config['mod']['move'], $board['uri'], $this->mod)) $built .= ' <a title="Move thread to another board" href="?/' . $board['uri'] . '/move/' . $this->id . '">' . $config['mod']['link_move'] . '</a>'; + // Edit post + if(hasPermission($config['mod']['editpost'], $board['uri'], $this->mod)) + $built .= ' <a title="Edit post" href="?/' . $board['uri'] . '/edit/' . $this->id . '">' . $config['mod']['link_editpost'] . '</a>'; + if(!empty($built)) $built = '<span class="controls op">' . $built . '</span>'; } |
