Index: branches/5.3.x/units/posts/post_tp.php =================================================================== diff -u -N -r15490 -r15694 --- branches/5.3.x/units/posts/post_tp.php (.../post_tp.php) (revision 15490) +++ branches/5.3.x/units/posts/post_tp.php (.../post_tp.php) (revision 15694) @@ -1,6 +1,6 @@ Application->getUnitOption($this->Prefix, 'ParentPrefix'); + $parent_prefix = $this->getUnitConfig()->getParentPrefix(); + $main_object = $this->Application->recallObject($parent_prefix); /* @var $main_object kCatDBItem */ @@ -253,7 +254,8 @@ if (!isset($category_path)) { // get topic category - $parent_prefix = $this->Application->getUnitOption($this->Prefix, 'ParentPrefix'); + $parent_prefix = $this->getUnitConfig()->getParentPrefix(); + $parent_item = $this->Application->recallObject($parent_prefix, null, Array ('raise_warnings' => 0)); $category_path = $parent_item->isLoaded() ? $parent_item->GetDBField('ParentPath') : $this->Application->GetVar('m_cat_id'); }