Code Duplication    Length = 2-2 lines in 2 locations

other/install.php 1 location

@@ 340-341 (lines=2) @@
337
		list ($_SESSION['installer_temp_lang']) = array_keys($incontext['detected_languages']);
338
339
		// If we have english and some other language, use the other language.  We Americans hate english :P.
340
		if ($_SESSION['installer_temp_lang'] == 'Install.english.php' && count($incontext['detected_languages']) > 1)
341
			list (, $_SESSION['installer_temp_lang']) = array_keys($incontext['detected_languages']);
342
	}
343
344
	// And now include the actual language file itself.

other/upgrade.php 1 location

@@ 495-496 (lines=2) @@
492
		list ($_SESSION['installer_temp_lang']) = array_keys($incontext['detected_languages']);
493
494
		// If we have english and some other language, use the other language.  We Americans hate english :P.
495
		if ($_SESSION['installer_temp_lang'] == 'Install.english.php' && count($incontext['detected_languages']) > 1)
496
			list (, $_SESSION['installer_temp_lang']) = array_keys($incontext['detected_languages']);
497
498
		// For backup we load the english at first -> second language overwrite the english one
499
		if (count($incontext['detected_languages']) > 1)