* code for task#1670.
This commit is contained in:
@@ -1463,6 +1463,19 @@ class router
|
||||
$loadedLangs[] = $langFile;
|
||||
}
|
||||
|
||||
/* Merge from the db lang. */
|
||||
if($moduleName != 'common' and isset($lang->db->custom))
|
||||
{
|
||||
foreach($lang->db->custom as $record)
|
||||
{
|
||||
if($moduleName == $record->module)
|
||||
{
|
||||
if(!$record->key) continue;
|
||||
$lang->{$record->module}->{$record->section}[$record->key] = $record->value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$this->lang = $lang;
|
||||
return $lang;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user