Code Duplication    Length = 8-8 lines in 2 locations

other/install.php 2 locations

@@ 1092-1099 (lines=8) @@
1089
	$modSettings['disableQueryCheck'] = true;
1090
1091
	// If doing UTF8, select it. PostgreSQL requires passing it as a string...
1092
	if (!empty($db_character_set) && $db_character_set == 'utf8' && !empty($databases[$db_type]['utf8_support']))
1093
		$smcFunc['db_query']('', '
1094
			SET NAMES {string:utf8}',
1095
			array(
1096
				'db_error_skip' => true,
1097
				'utf8' => 'utf8',
1098
			)
1099
		);
1100
1101
	// Windows likes to leave the trailing slash, which yields to C:\path\to\SMF\/attachments...
1102
	if (substr(__DIR__, -1) == '\\')
@@ 1635-1642 (lines=8) @@
1632
	if (!empty($incontext['account_existed']))
1633
		$incontext['warning'] = $incontext['account_existed'];
1634
1635
	if (!empty($db_character_set) && !empty($databases[$db_type]['utf8_support']))
1636
		$smcFunc['db_query']('', '
1637
			SET NAMES {string:db_character_set}',
1638
			array(
1639
				'db_character_set' => $db_character_set,
1640
				'db_error_skip' => true,
1641
			)
1642
		);
1643
1644
	// As track stats is by default enabled let's add some activity.
1645
	$smcFunc['db_insert']('ignore',