mirror of
https://github.com/phpbb/phpbb.git
synced 2025-01-19 15:17:16 +01:00
Output nothing if moderator display is "off"
git-svn-id: file:///svn/phpbb/trunk@3053 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
3184365533
commit
66af710664
@ -183,19 +183,15 @@ function display_forums($root_data=array(), $display_moderators=TRUE)
|
||||
$l_subforums = '';
|
||||
}
|
||||
|
||||
$l_moderator = $moderators_list = '';
|
||||
if ($display_moderators)
|
||||
{
|
||||
$l_moderator = $moderators_list = '';
|
||||
if (!empty($forum_moderators[$forum_id]))
|
||||
{
|
||||
$l_moderator = (count($forum_moderators[$forum_id]) == 1) ? $user->lang['Moderator'] : $user->lang['Moderators'];
|
||||
$moderators_list = implode(', ', $forum_moderators[$forum_id]);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$moderators_list = '<a href="memberslist.' . $phpEx . $SID . '&mode=moderators&f=' . $forum_id . '">' . $user->lang['View_moderators'] . '</a>';
|
||||
}
|
||||
|
||||
$template->assign_block_vars('forumrow', array(
|
||||
'S_IS_CAT' => FALSE,
|
||||
|
Loading…
x
Reference in New Issue
Block a user