From 3f1c279ce31ed9e70b85c62cf4dc7e58de2ad321 Mon Sep 17 00:00:00 2001 From: Michael Save Date: Wed, 15 Feb 2012 20:11:09 +1100 Subject: experimental post editing (for mods) --- inc/display.php | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'inc/display.php') 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 .= ' ' . $config['mod']['link_deletefile'] . ''; + // Edit post + if(hasPermission($config['mod']['editpost'], $board['uri'], $this->mod)) + $built .= ' ' . $config['mod']['link_editpost'] . ''; + if(!empty($built)) $built = '' . $built . ''; } @@ -399,6 +403,10 @@ if(hasPermission($config['mod']['move'], $board['uri'], $this->mod)) $built .= ' ' . $config['mod']['link_move'] . ''; + // Edit post + if(hasPermission($config['mod']['editpost'], $board['uri'], $this->mod)) + $built .= ' ' . $config['mod']['link_editpost'] . ''; + if(!empty($built)) $built = '' . $built . ''; } -- cgit v1.3