Selaa lähdekoodia

Dictionary files that follow the naming convention <Lang>.dict.<ModuleName>.php are now loaded automatically without the need to specify them explicitely in the module definition file.

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@1232 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 14 vuotta sitten
vanhempi
commit
2cdfc9332b
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      setup/setuppage.class.inc.php

+ 1 - 1
setup/setuppage.class.inc.php

@@ -344,7 +344,7 @@ h3.clickable.open {
 				while (($sFile = readdir($hDir)) !== false)
 				{
 					$aMatches = array();
-					if (preg_match("/^[^\\.]+.dict.$sModuleName.php$/i", $sFile, $aMatches)) // Dictionary files are name <Lang>.dict.<ModuleName>.php
+					if (preg_match("/^[^\\.]+.dict.$sModuleName.php$/i", $sFile, $aMatches)) // Dictionary files named like <Lang>.dict.<ModuleName>.php are loaded automatically
 					{
 						self::$m_aModules[$sId]['dictionary'][] = self::$m_sModulePath.'/'.$sFile;
 					}