1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-01 04:10:38 +02:00

Removed $forum global .

This commit is contained in:
Cameron
2019-05-28 12:04:25 -07:00
parent 09846ee9a7
commit 1d4f1afc25

View File

@@ -1027,22 +1027,19 @@
function sc_moderators()
{
global $forum;
$modUser = array();
foreach($forum->modArray as $user)
foreach($this->forum->modArray as $user)
{
$modUser[] = "<a href='" . e107::getUrl()->create('user/profile/view', $user) . "'>" . $user['user_name'] . "</a>";
}
//$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 : '');
}