Browse Source

Fix for a crash in the setup (regression) introduced by [r3978] (optimization of the load of dictionaries)

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@3990 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 9 năm trước cách đây
mục cha
commit
e10962be6f
1 tập tin đã thay đổi với 4 bổ sung5 xóa
  1. 4 5
      core/dict.class.inc.php

+ 4 - 5
core/dict.class.inc.php

@@ -338,7 +338,8 @@ class Dict
 		MyHelpers::var_dump_html(self::$m_aData);
 	}
 
-	// Obsolete: only used by the setup/compiler which replaces this method invocation by its own handler !!
+	// Only used by the setup to determine the list of languages to display in the initial setup screen
+	// otherwise replaced by LoadModule by its own handler
 	// sLanguageCode: Code identifying the language i.e. FR-FR
 	// sEnglishLanguageDesc: Description of the language code, in English. i.e. French (France)
 	// sLocalizedLanguageDesc: Description of the language code, in its own language. i.e. Français (France)
@@ -351,10 +352,8 @@ class Dict
 			self::$m_aLanguages[$sLanguageCode] = array('description' => $sEnglishLanguageDesc, 'localized_description' => $sLocalizedLanguageDesc);
 			self::$m_aData[$sLanguageCode] = array();
 		}
-		foreach($aEntries as $sCode => $sValue)
-		{
-			self::$m_aData[$sLanguageCode][$sCode] = self::FilterString($sValue);
-		}
+		// No need to actually load the strings since it's only used to know the list of languages
+		// at setup time !!
 	}
 }
 ?>