Code Duplication    Length = 4-4 lines in 2 locations

other/install.php 1 location

@@ 328-331 (lines=4) @@
325
	}
326
327
	// Override the language file?
328
	if (isset($_GET['lang_file']))
329
		$_SESSION['installer_temp_lang'] = $_GET['lang_file'];
330
	elseif (isset($GLOBALS['HTTP_GET_VARS']['lang_file']))
331
		$_SESSION['installer_temp_lang'] = $GLOBALS['HTTP_GET_VARS']['lang_file'];
332
333
	// Make sure it exists, if it doesn't reset it.
334
	if (!isset($_SESSION['installer_temp_lang']) || preg_match('~[^\\w_\\-.]~', $_SESSION['installer_temp_lang']) === 1 || !file_exists(dirname(__FILE__) . '/Themes/default/languages/' . $_SESSION['installer_temp_lang']))

other/upgrade.php 1 location

@@ 480-483 (lines=4) @@
477
	}
478
479
	// Override the language file?
480
	if (isset($_GET['lang_file']))
481
		$_SESSION['installer_temp_lang'] = $_GET['lang_file'];
482
	elseif (isset($GLOBALS['HTTP_GET_VARS']['lang_file']))
483
		$_SESSION['installer_temp_lang'] = $GLOBALS['HTTP_GET_VARS']['lang_file'];
484
485
	// Make sure it exists, if it doesn't reset it.
486
	if (!isset($_SESSION['installer_temp_lang']) || preg_match('~[^\\w_\\-.]~', $_SESSION['installer_temp_lang']) === 1 || !file_exists(dirname(__FILE__) . '/Themes/default/languages/' . $_SESSION['installer_temp_lang']))