Code Duplication    Length = 2-2 lines in 2 locations

other/install.php 1 location

@@ 328-329 (lines=2) @@
325
		list ($_SESSION['installer_temp_lang']) = array_keys($incontext['detected_languages']);
326
327
		// If we have english and some other language, use the other language.  We Americans hate english :P.
328
		if ($_SESSION['installer_temp_lang'] == 'Install.english.php' && count($incontext['detected_languages']) > 1)
329
			list (, $_SESSION['installer_temp_lang']) = array_keys($incontext['detected_languages']);
330
	}
331
332
	// And now include the actual language file itself.

other/upgrade.php 1 location

@@ 483-484 (lines=2) @@
480
		list ($_SESSION['installer_temp_lang']) = array_keys($incontext['detected_languages']);
481
482
		// If we have english and some other language, use the other language.  We Americans hate english :P.
483
		if ($_SESSION['installer_temp_lang'] == 'Install.english.php' && count($incontext['detected_languages']) > 1)
484
			list (, $_SESSION['installer_temp_lang']) = array_keys($incontext['detected_languages']);
485
486
		// For backup we load the english at first -> second language overwrite the english one
487
		if (count($incontext['detected_languages']) > 1)