Code Duplication    Length = 8-8 lines in 2 locations

other/install.php 2 locations

@@ 1043-1050 (lines=8) @@
1040
	$modSettings['disableQueryCheck'] = true;
1041
1042
	// If doing UTF8, select it. PostgreSQL requires passing it as a string...
1043
	if (!empty($db_character_set) && $db_character_set == 'utf8' && !empty($databases[$db_type]['utf8_support']))
1044
		$smcFunc['db_query']('', '
1045
			SET NAMES {string:utf8}',
1046
			array(
1047
				'db_error_skip' => true,
1048
				'utf8' => 'utf8',
1049
			)
1050
		);
1051
1052
	// Windows likes to leave the trailing slash, which yields to C:\path\to\SMF\/attachments...
1053
	if (substr(__DIR__, -1) == '\\')
@@ 1553-1560 (lines=8) @@
1550
	if (!empty($incontext['account_existed']))
1551
		$incontext['warning'] = $incontext['account_existed'];
1552
1553
	if (!empty($db_character_set) && !empty($databases[$db_type]['utf8_support']))
1554
		$smcFunc['db_query']('', '
1555
			SET NAMES {string:db_character_set}',
1556
			array(
1557
				'db_character_set' => $db_character_set,
1558
				'db_error_skip' => true,
1559
			)
1560
		);
1561
1562
	// As track stats is by default enabled let's add some activity.
1563
	$smcFunc['db_insert']('ignore',