diff --git a/e107_plugins/forum/shortcodes/batch/view_shortcodes.php b/e107_plugins/forum/shortcodes/batch/view_shortcodes.php index 692bbf398..481886f1e 100644 --- a/e107_plugins/forum/shortcodes/batch/view_shortcodes.php +++ b/e107_plugins/forum/shortcodes/batch/view_shortcodes.php @@ -1027,22 +1027,19 @@ function sc_moderators() { - global $forum; - $modUser = array(); - foreach($forum->modArray as $user) + foreach($this->forum->modArray as $user) { $modUser[] = "" . $user['user_name'] . ""; } -//$tVars->MODERATORS = LAN_FORUM_2003.": ". implode(', ', $modUser); + return LAN_FORUM_2003 . ": " . implode(', ', $modUser); -//unset($modUser); + } function sc_threadstatus() { -//$tVars->THREADSTATUS = (!$thread->threadInfo['thread_active'] ? LAN_FORUM_2004 : ''); return (!$this->var['thread_active'] ? LAN_FORUM_2004 : ''); }