Code Duplication    Length = 2-2 lines in 2 locations

other/upgrade.php 2 locations

@@ 224-225 (lines=2) @@
221
	$settings['default_theme_dir'] = $modSettings['theme_dir'];
222
223
// This is needed in case someone invokes the upgrader using https when upgrading an http forum
224
if (httpsOn())
225
	$settings['default_theme_url'] = strtr($settings['default_theme_url'], array('http://' => 'https://'));
226
227
$upcontext['is_large_forum'] = (empty($modSettings['smfVersion']) || $modSettings['smfVersion'] <= '1.1 RC1') && !empty($modSettings['totalMessages']) && $modSettings['totalMessages'] > 75000;
228
// Default title...
@@ 1544-1545 (lines=2) @@
1541
		$forum_version = SMF_VERSION; // The variable is usually defined in index.php so lets just use the constant to do it for us.
1542
		scheduled_fetchSMfiles(); // Now go get those files!
1543
		// This is needed in case someone invokes the upgrader using https when upgrading an http forum
1544
		if (httpsOn())
1545
			$settings['default_theme_url'] = strtr($settings['default_theme_url'], array('http://' => 'https://'));
1546
	}
1547
1548
	// Log what we've done.