Code Duplication    Length = 8-8 lines in 2 locations

other/install.php 2 locations

@@ 1083-1090 (lines=8) @@
1080
	$modSettings['disableQueryCheck'] = true;
1081
1082
	// If doing UTF8, select it. PostgreSQL requires passing it as a string...
1083
	if (!empty($db_character_set) && $db_character_set == 'utf8' && !empty($databases[$db_type]['utf8_support']))
1084
		$smcFunc['db_query']('', '
1085
			SET NAMES {string:utf8}',
1086
			array(
1087
				'db_error_skip' => true,
1088
				'utf8' => 'utf8',
1089
			)
1090
		);
1091
1092
	// Windows likes to leave the trailing slash, which yields to C:\path\to\SMF\/attachments...
1093
	if (substr(__DIR__, -1) == '\\')
@@ 1626-1633 (lines=8) @@
1623
	if (!empty($incontext['account_existed']))
1624
		$incontext['warning'] = $incontext['account_existed'];
1625
1626
	if (!empty($db_character_set) && !empty($databases[$db_type]['utf8_support']))
1627
		$smcFunc['db_query']('', '
1628
			SET NAMES {string:db_character_set}',
1629
			array(
1630
				'db_character_set' => $db_character_set,
1631
				'db_error_skip' => true,
1632
			)
1633
		);
1634
1635
	// As track stats is by default enabled let's add some activity.
1636
	$smcFunc['db_insert']('ignore',