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...
@@ 1541-1542 (lines=2) @@
1538
		$forum_version = SMF_VERSION; // The variable is usually defined in index.php so lets just use the constant to do it for us.
1539
		scheduled_fetchSMfiles(); // Now go get those files!
1540
		// This is needed in case someone invokes the upgrader using https when upgrading an http forum
1541
		if (httpsOn())
1542
			$settings['default_theme_url'] = strtr($settings['default_theme_url'], array('http://' => 'https://'));
1543
	}
1544
1545
	// Log what we've done.