Code Duplication    Length = 2-2 lines in 2 locations

other/upgrade.php 2 locations

@@ 622-623 (lines=2) @@
619
		$is_debug = $upcontext['upgrade_status']['debug'];
620
621
	// Load the language.
622
	if (file_exists($modSettings['theme_dir'] . '/languages/Install.' . $upcontext['language'] . '.php'))
623
		require_once($modSettings['theme_dir'] . '/languages/Install.' . $upcontext['language'] . '.php');
624
}
625
// Set the defaults.
626
else
@@ 1407-1408 (lines=2) @@
1404
	$changes = array();
1405
1406
	// If we're overriding the language follow it through.
1407
	if (isset($_GET['lang']) && file_exists($modSettings['theme_dir'] . '/languages/index.' . $_GET['lang'] . '.php'))
1408
		$changes['language'] = '\'' . $_GET['lang'] . '\'';
1409
1410
	if (!empty($_POST['maint']))
1411
	{