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) == '\\')
@@ 1562-1569 (lines=8) @@
1559
	if (!empty($incontext['account_existed']))
1560
		$incontext['warning'] = $incontext['account_existed'];
1561
1562
	if (!empty($db_character_set) && !empty($databases[$db_type]['utf8_support']))
1563
		$smcFunc['db_query']('', '
1564
			SET NAMES {string:db_character_set}',
1565
			array(
1566
				'db_character_set' => $db_character_set,
1567
				'db_error_skip' => true,
1568
			)
1569
		);
1570
1571
	// As track stats is by default enabled let's add some activity.
1572
	$smcFunc['db_insert']('ignore',