Code Duplication    Length = 2-2 lines in 2 locations

Sources/MessageIndex.php 1 location

@@ 423-424 (lines=2) @@
420
				$pages = constructPageIndex($scripturl . '?topic=' . $row['id_topic'] . '.%1$d', $start, $row['num_replies'] + 1, $context['messages_per_page'], true, false);
421
422
				// If we can use all, show all.
423
				if (!empty($modSettings['enableAllMessages']) && $row['num_replies'] + 1 < $modSettings['enableAllMessages'])
424
					$pages .= ' &nbsp;<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0;all">' . $txt['all'] . '</a>';
425
			}
426
			else
427
				$pages = '';

Sources/Recent.php 1 location

@@ 1250-1251 (lines=2) @@
1247
			$pages = constructPageIndex($scripturl . '?topic=' . $row['id_topic'] . '.%1$d', $start, $topic_length, $messages_per_page, true, false);
1248
1249
			// If we can use all, show all.
1250
			if (!empty($modSettings['enableAllMessages']) && $topic_length < $modSettings['enableAllMessages'])
1251
				$pages .= ' &nbsp;<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0;all">' . $txt['all'] . '</a>';
1252
		}
1253
1254
		else