Index: trunk/core/units/general/cat_dbitem_export.php =================================================================== diff -u -N -r5536 -r6093 --- trunk/core/units/general/cat_dbitem_export.php (.../cat_dbitem_export.php) (revision 5536) +++ trunk/core/units/general/cat_dbitem_export.php (.../cat_dbitem_export.php) (revision 6093) @@ -448,10 +448,10 @@ } if ($this->exportOptions['IsBaseCategory'] ) { - $sql = 'SELECT CachedNavbar + $sql = 'SELECT ParentPath FROM '.TABLE_PREFIX.'Category WHERE CategoryId = '.$this->Application->GetVar('m_cat_id'); - $this->exportOptions['BaseLevel'] = substr_count($this->Conn->GetOne($sql), '>') + 1; // level to cut from other categories + $this->exportOptions['BaseLevel'] = substr_count($this->Conn->GetOne($sql), '|') - 1; // level to cut from other categories } // 1. export field titles if required @@ -957,11 +957,12 @@ $category_path = $this->getFromCache('category_path', $category_id); if (!$category_path) { - $sql = 'SELECT CachedNavbar + $ml_formatter =& $this->Application->recallObject('kMultiLanguage'); + $sql = 'SELECT '.$ml_formatter->LangFieldName('CachedNavbar').' FROM '.TABLE_PREFIX.'Category WHERE CategoryId = '.$category_id; $category_path = $this->Conn->GetOne($sql); - $category_path = $category_path ? explode('>', $category_path) : Array(); + $category_path = $category_path ? explode('&|&', $category_path) : Array(); if ($this->exportOptions['IsBaseCategory']) { $i = $this->exportOptions['BaseLevel'];