Code Duplication    Length = 2-2 lines in 2 locations

other/upgrade.php 2 locations

@@ 236-237 (lines=2) @@
233
		$is_debug = $upcontext['upgrade_status']['debug'];
234
235
	// Load the language.
236
	if (file_exists($modSettings['theme_dir'] . '/languages/Install.' . $upcontext['language'] . '.php'))
237
		require_once($modSettings['theme_dir'] . '/languages/Install.' . $upcontext['language'] . '.php');
238
}
239
// Set the defaults.
240
else
@@ 1076-1077 (lines=2) @@
1073
		updateSettings(array('force_ssl' => '2'));
1074
1075
	// If we're overriding the language follow it through.
1076
	if (isset($_GET['lang']) && file_exists($modSettings['theme_dir'] . '/languages/index.' . $_GET['lang'] . '.php'))
1077
		$changes['language'] = '\'' . $_GET['lang'] . '\'';
1078
1079
	if (!empty($_POST['maint']))
1080
	{