Index: trunk/core/units/categories/cache_updater.php =================================================================== diff -u -r5206 -r5212 --- trunk/core/units/categories/cache_updater.php (.../cache_updater.php) (revision 5206) +++ trunk/core/units/categories/cache_updater.php (.../cache_updater.php) (revision 5212) @@ -137,10 +137,15 @@ var $table; var $root_prefixes = Array(); + var $TitleField = ''; function Init($prefix, $special, $event_params = null) { parent::Init($prefix, $special, $event_params); + + $ml_formatter =& $this->Application->recallObject('kMultiLanguage'); + $this->TitleField = $ml_formatter->LangFieldName('Name'); + $continuing = $event_params['continue']; foreach ($this->Application->ModuleInfo as $module_name => $module_info) { @@ -281,14 +286,13 @@ function QueryTitle(&$data) { $category_id = $data['current_id']; - - $sql = 'SELECT Name, Filename, CategoryTemplate, ItemTemplate + $sql = 'SELECT '.$this->TitleField.', Filename, CategoryTemplate, ItemTemplate FROM '.TABLE_PREFIX.'Category WHERE CategoryId = '.$category_id; $record = $this->Conn->GetRow($sql); if ($record) { - $data['title'][] = $record['Name']; + $data['title'][] = $record[$this->TitleField]; $data['named_path'][] = $record['Filename']; // it is one of the modules root category