Code Duplication    Length = 4-4 lines in 2 locations

other/install.php 1 location

@@ 316-319 (lines=4) @@
313
	}
314
315
	// Override the language file?
316
	if (isset($_GET['lang_file']))
317
		$_SESSION['installer_temp_lang'] = $_GET['lang_file'];
318
	elseif (isset($GLOBALS['HTTP_GET_VARS']['lang_file']))
319
		$_SESSION['installer_temp_lang'] = $GLOBALS['HTTP_GET_VARS']['lang_file'];
320
321
	// Make sure it exists, if it doesn't reset it.
322
	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

@@ 471-474 (lines=4) @@
468
	}
469
470
	// Override the language file?
471
	if (isset($_GET['lang_file']))
472
		$_SESSION['installer_temp_lang'] = $_GET['lang_file'];
473
	elseif (isset($GLOBALS['HTTP_GET_VARS']['lang_file']))
474
		$_SESSION['installer_temp_lang'] = $GLOBALS['HTTP_GET_VARS']['lang_file'];
475
476
	// Make sure it exists, if it doesn't reset it.
477
	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']))