Code Duplication    Length = 8-8 lines in 2 locations

other/install.php 2 locations

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