Code Duplication    Length = 2-2 lines in 2 locations

Sources/News.php 2 locations

@@ 813-814 (lines=2) @@
810
	while ($row = $smcFunc['db_fetch_assoc']($request))
811
	{
812
		// Limit the length of the message, if the option is set.
813
		if (!empty($modSettings['xmlnews_maxlen']) && $smcFunc['strlen'](str_replace('<br>', "\n", $row['body'])) > $modSettings['xmlnews_maxlen'])
814
			$row['body'] = strtr($smcFunc['substr'](str_replace('<br>', "\n", $row['body']), 0, $modSettings['xmlnews_maxlen'] - 3), array("\n" => '<br>')) . '...';
815
816
		$row['body'] = parse_bbc($row['body'], $row['smileys_enabled'], $row['id_msg']);
817
@@ 1223-1224 (lines=2) @@
1220
	while ($row = $smcFunc['db_fetch_assoc']($request))
1221
	{
1222
		// Limit the length of the message, if the option is set.
1223
		if (!empty($modSettings['xmlnews_maxlen']) && $smcFunc['strlen'](str_replace('<br>', "\n", $row['body'])) > $modSettings['xmlnews_maxlen'])
1224
			$row['body'] = strtr($smcFunc['substr'](str_replace('<br>', "\n", $row['body']), 0, $modSettings['xmlnews_maxlen'] - 3), array("\n" => '<br>')) . '...';
1225
1226
		$row['body'] = parse_bbc($row['body'], $row['smileys_enabled'], $row['id_msg']);
1227