Code Duplication    Length = 8-8 lines in 2 locations

other/install.php 2 locations

@@ 1030-1037 (lines=8) @@
1027
	$modSettings['disableQueryCheck'] = true;
1028
1029
	// If doing UTF8, select it. PostgreSQL requires passing it as a string...
1030
	if (!empty($db_character_set) && $db_character_set == 'utf8' && !empty($databases[$db_type]['utf8_support']))
1031
		$smcFunc['db_query']('', '
1032
			SET NAMES {string:utf8}',
1033
			array(
1034
				'db_error_skip' => true,
1035
				'utf8' => 'utf8',
1036
			)
1037
		);
1038
1039
	// Windows likes to leave the trailing slash, which yields to C:\path\to\SMF\/attachments...
1040
	if (substr(__DIR__, -1) == '\\')
@@ 1529-1536 (lines=8) @@
1526
	if (!empty($incontext['account_existed']))
1527
		$incontext['warning'] = $incontext['account_existed'];
1528
1529
	if (!empty($db_character_set) && !empty($databases[$db_type]['utf8_support']))
1530
		$smcFunc['db_query']('', '
1531
			SET NAMES {string:db_character_set}',
1532
			array(
1533
				'db_character_set' => $db_character_set,
1534
				'db_error_skip' => true,
1535
			)
1536
		);
1537
1538
	// As track stats is by default enabled let's add some activity.
1539
	$smcFunc['db_insert']('ignore',