Browse Source

#827 Default language given at setup not taken into account (login page always in english)

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@2976 a333f486-631f-4898-b8df-5754b55c2be0
romainq 11 years ago
parent
commit
bc0b511c7a
1 changed files with 4 additions and 1 deletions
  1. 4 1
      setup/applicationinstaller.class.inc.php

+ 4 - 1
setup/applicationinstaller.class.inc.php

@@ -522,6 +522,7 @@ class ApplicationInstaller
 		$oConfig = new Config();
 
 		$aParamValues = array(
+			'mode' => $sMode, 
 			'db_server' => $sDBServer,
 			'db_user' => $sDBUser,
 			'db_pwd' => $sDBPwd,
@@ -592,6 +593,7 @@ class ApplicationInstaller
 		$oConfig = new Config();
 
 		$aParamValues = array(
+			'mode' => $sMode, 
 			'db_server' => $sDBServer,
 			'db_user' => $sDBUser,
 			'db_pwd' => $sDBPwd,
@@ -851,6 +853,7 @@ class ApplicationInstaller
 	protected static function DoCreateConfig($sMode, $sModulesDir, $sDBServer, $sDBUser, $sDBPwd, $sDBName, $sDBPrefix, $sUrl, $sLanguage, $aSelectedModules, $sTargetEnvironment, $bOldAddon, $sSourceDir, $sPreviousConfigFile, $sDataModelVersion)
 	{	
 		$aParamValues = array(
+			'mode' => $sMode, 
 			'db_server' => $sDBServer,
 			'db_user' => $sDBUser,
 			'db_pwd' => $sDBPwd,
@@ -859,7 +862,7 @@ class ApplicationInstaller
 			'db_prefix' => $sDBPrefix,
 			'application_path' => $sUrl,
 			'language' => $sLanguage,
-			'selected_modules' => implode(',', $aSelectedModules), 
+			'selected_modules' => implode(',', $aSelectedModules),
 		);
 		
 		$bPreserveModuleSettings = false;