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