Code Duplication    Length = 4-5 lines in 2 locations

Sources/Display.php 1 location

@@ 506-510 (lines=5) @@
503
			$context['link_moderators'][] = '<a href="' . $scripturl . '?action=groups;sa=viewmemberes;group=' . $mod_group['id'] . '" title="' . $txt['board_moderator'] . '">' . $mod_group['name'] . '</a>';
504
	}
505
506
	if (!empty($context['link_moderators']))
507
	{
508
		// And show it after the board's name.
509
		$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>';
510
	}
511
512
	// Information about the current topic...
513
	$context['is_locked'] = $context['topicinfo']['locked'];

Sources/MessageIndex.php 1 location

@@ 146-149 (lines=4) @@
143
	}
144
145
	// Now we tack the info onto the end of the linktree
146
	if (!empty($context['link_moderators']))
147
	{
148
	 	$context['linktree'][count($context['linktree']) - 1]['extra_after'] = '<span class="board_moderators">(' . (count($context['link_moderators']) == 1 ? $txt['moderator'] : $txt['moderators']) . ': ' . implode(', ', $context['link_moderators']) . ')</span>';
149
	}
150
151
	// 'Print' the header and board info.
152
	$context['page_title'] = strip_tags($board_info['name']);