Skip to content

Commit

Permalink
Moderators out of the linktree!!
Browse files Browse the repository at this point in the history
Signed-off-by: emanuele <emanuele45@gmail.com>
  • Loading branch information
emanuele45 committed Jun 14, 2014
1 parent 5bf1962 commit 4598bc2
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions sources/controllers/Display.controller.php
Expand Up @@ -345,16 +345,6 @@ public function action_display()
$context['moderators'] = &$board_info['moderators'];
$context['link_moderators'] = array();

if (!empty($board_info['moderators']))
{
// Add a link for each moderator...
foreach ($board_info['moderators'] as $mod)
$context['link_moderators'][] = '<a href="' . $scripturl . '?action=profile;u=' . $mod['id'] . '" title="' . $txt['board_moderator'] . '">' . $mod['name'] . '</a>';

// And show it after the board's name.
$context['linktree'][count($context['linktree']) - 2]['extra_after'] = '<span class="board_moderators"> (' . (count($context['link_moderators']) == 1 ? $txt['moderator'] : $txt['moderators']) . ': ' . implode(', ', $context['link_moderators']) . ')</span>';
}

// Information about the current topic...
$context['is_locked'] = $topicinfo['locked'];
$context['is_sticky'] = $topicinfo['is_sticky'];
Expand Down Expand Up @@ -1015,4 +1005,4 @@ public function prepareDisplayContext_callback($reset = false)

return $output;
}
}
}

0 comments on commit 4598bc2

Please sign in to comment.