Code Duplication    Length = 2-2 lines in 2 locations

other/upgrade.php 2 locations

@@ 226-227 (lines=2) @@
223
		$is_debug = $upcontext['upgrade_status']['debug'];
224
225
	// Load the language.
226
	if (file_exists($modSettings['theme_dir'] . '/languages/Install.' . $upcontext['language'] . '.php'))
227
		require_once($modSettings['theme_dir'] . '/languages/Install.' . $upcontext['language'] . '.php');
228
}
229
// Set the defaults.
230
else
@@ 1018-1019 (lines=2) @@
1015
		);
1016
1017
	// If we're overriding the language follow it through.
1018
	if (isset($_GET['lang']) && file_exists($modSettings['theme_dir'] . '/languages/index.' . $_GET['lang'] . '.php'))
1019
		$changes['language'] = '\'' . $_GET['lang'] . '\'';
1020
1021
	if (!empty($_POST['maint']))
1022
	{