mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 02:58:43 +02:00
Improved error handling and localization
SVN:trunk[437]
This commit is contained in:
@@ -2935,6 +2935,15 @@ abstract class MetaModel
|
||||
self::$m_bLogWebService = false;
|
||||
}
|
||||
|
||||
// Note: load the dictionary as soon as possible, because it might be
|
||||
// needed when some error occur
|
||||
foreach ($oConfig->GetDictionaries() as $sModule => $sToInclude)
|
||||
{
|
||||
self::Plugin($sConfigFile, 'dictionaries', $sToInclude);
|
||||
}
|
||||
// Set the language... after the dictionaries have been loaded!
|
||||
Dict::SetDefaultLanguage($oConfig->GetDefaultLanguage());
|
||||
|
||||
foreach ($oConfig->GetAppModules() as $sModule => $sToInclude)
|
||||
{
|
||||
self::Plugin($sConfigFile, 'application', $sToInclude);
|
||||
@@ -2947,12 +2956,6 @@ abstract class MetaModel
|
||||
{
|
||||
self::Plugin($sConfigFile, 'addons', $sToInclude);
|
||||
}
|
||||
foreach ($oConfig->GetDictionaries() as $sModule => $sToInclude)
|
||||
{
|
||||
self::Plugin($sConfigFile, 'dictionaries', $sToInclude);
|
||||
}
|
||||
// Set the language... after the dictionaries have been loaded!
|
||||
Dict::SetDefaultLanguage($oConfig->GetDefaultLanguage());
|
||||
|
||||
$sServer = $oConfig->GetDBHost();
|
||||
$sUser = $oConfig->GetDBUser();
|
||||
|
||||
Reference in New Issue
Block a user