diff --git a/inc/display.php b/inc/display.php
index edcbf21b..66637d0d 100644
--- a/inc/display.php
+++ b/inc/display.php
@@ -74,6 +74,8 @@
$this->mod = $mod;
}
public function postControls() {
+ global $board;
+
$built = '';
if($this->mod) {
// Mod controls (on posts)
@@ -81,23 +83,23 @@
// Delete
if($this->mod['type'] >= MOD_DELETE)
- $built .= ' ' . MOD_LINK_DELETE . '';
+ $built .= ' ' . MOD_LINK_DELETE . '';
// Delete all posts by IP
if($this->mod['type'] >= MOD_DELETEBYIP)
- $built .= ' ' . MOD_LINK_DELETEBYIP . '';
+ $built .= ' ' . MOD_LINK_DELETEBYIP . '';
// Ban
if($this->mod['type'] >= MOD_BAN)
- $built .= ' ' . MOD_LINK_BAN . '';
+ $built .= ' ' . MOD_LINK_BAN . '';
// Ban & Delete
if($this->mod['type'] >= MOD_BANDELETE)
- $built .= ' ' . MOD_LINK_BANDELETE . '';
+ $built .= ' ' . MOD_LINK_BANDELETE . '';
// Delete file (keep post)
if(!empty($this->file) && $this->mod['type'] >= MOD_DELETEFILE)
- $built .= ' ' . MOD_LINK_DELETEFILE . '';
+ $built .= ' ' . MOD_LINK_DELETEFILE . '';
$built .= '';
}
@@ -200,7 +202,9 @@
public function add(Post $post) {
$this->posts[] = $post;
}
- public function postControls() {
+ public function postControls() {
+ global $board;
+
$built = '';
if($this->mod) {
// Mod controls (on posts)
@@ -208,33 +212,33 @@
// Delete
if($this->mod['type'] >= MOD_DELETE)
- $built .= ' ' . MOD_LINK_DELETE . '';
+ $built .= ' ' . MOD_LINK_DELETE . '';
// Delete all posts by IP
if($this->mod['type'] >= MOD_DELETEBYIP)
- $built .= ' ' . MOD_LINK_DELETEBYIP . '';
+ $built .= ' ' . MOD_LINK_DELETEBYIP . '';
// Ban
if($this->mod['type'] >= MOD_BAN)
- $built .= ' ' . MOD_LINK_BAN . '';
+ $built .= ' ' . MOD_LINK_BAN . '';
// Ban & Delete
if($this->mod['type'] >= MOD_BANDELETE)
- $built .= ' ' . MOD_LINK_BANDELETE . '';
+ $built .= ' ' . MOD_LINK_BANDELETE . '';
// Stickies
if($this->mod['type'] >= MOD_STICKY)
if($this->sticky)
- $built .= ' ' . MOD_LINK_DESTICKY . '';
+ $built .= ' ' . MOD_LINK_DESTICKY . '';
else
- $built .= ' ' . MOD_LINK_STICKY . '';
+ $built .= ' ' . MOD_LINK_STICKY . '';
// Lock
if($this->mod['type'] >= MOD_LOCK)
if($this->locked)
- $built .= ' ' . MOD_LINK_UNLOCK . '';
+ $built .= ' ' . MOD_LINK_UNLOCK . '';
else
- $built .= ' ' . MOD_LINK_LOCK . '';
+ $built .= ' ' . MOD_LINK_LOCK . '';
$built .= '';