Code Duplication    Length = 8-8 lines in 2 locations

other/install.php 2 locations

@@ 1019-1026 (lines=8) @@
1016
	$modSettings['disableQueryCheck'] = true;
1017
1018
	// If doing UTF8, select it. PostgreSQL requires passing it as a string...
1019
	if (!empty($db_character_set) && $db_character_set == 'utf8' && !empty($databases[$db_type]['utf8_support']))
1020
		$smcFunc['db_query']('', '
1021
			SET NAMES {string:utf8}',
1022
			array(
1023
				'db_error_skip' => true,
1024
				'utf8' => 'utf8',
1025
			)
1026
		);
1027
1028
	// Windows likes to leave the trailing slash, which yields to C:\path\to\SMF\/attachments...
1029
	if (substr(__DIR__, -1) == '\\')
@@ 1519-1526 (lines=8) @@
1516
	if (!empty($incontext['account_existed']))
1517
		$incontext['warning'] = $incontext['account_existed'];
1518
1519
	if (!empty($db_character_set) && !empty($databases[$db_type]['utf8_support']))
1520
		$smcFunc['db_query']('', '
1521
			SET NAMES {string:db_character_set}',
1522
			array(
1523
				'db_character_set' => $db_character_set,
1524
				'db_error_skip' => true,
1525
			)
1526
		);
1527
1528
	// As track stats is by default enabled let's add some activity.
1529
	$smcFunc['db_insert']('ignore',