Index: branches/5.3.x/core/units/helpers/navigation_bar.php =================================================================== diff -u -N -r15483 -r15698 --- branches/5.3.x/core/units/helpers/navigation_bar.php (.../navigation_bar.php) (revision 15483) +++ branches/5.3.x/core/units/helpers/navigation_bar.php (.../navigation_bar.php) (revision 15698) @@ -1,6 +1,6 @@ LangFieldName($category_title); - $id_field = $this->Application->getUnitOption('c', 'IDField'); - $table_name = $this->Application->getUnitOption('c', 'TableName'); + $config = $this->Application->getUnitConfig('c'); + $id_field = $config->getIDField(); $this->Conn->nextQueryCachable = true; $sql = 'SELECT ' . $navbar_field . ', ' . $id_field . ' - FROM ' . $table_name . ' + FROM ' . $config->getTableName() . ' WHERE ' . $id_field . ' IN (' . implode(',', $parent_path) . ')'; $category_names = $this->Conn->GetCol($sql, $id_field); @@ -327,10 +327,12 @@ return $parent_path; } + $config = $this->Application->getUnitConfig('c'); + $this->Conn->nextQueryCachable = true; $sql = 'SELECT ParentPath - FROM ' . $this->Application->getUnitOption('c', 'TableName') . ' - WHERE ' . $this->Application->getUnitOption('c', 'IDField') . ' = ' . $category_id; + FROM ' . $config->getTableName() . ' + WHERE ' . $config->getIDField() . ' = ' . $category_id; $parent_path = $this->Conn->GetOne($sql); $this->Application->setCache($cache_key, $parent_path);