Index: branches/unlabeled/unlabeled-1.4.2/core/units/general/helpers/mod_rewrite_helper.php =================================================================== diff -u -r6031 -r6078 --- branches/unlabeled/unlabeled-1.4.2/core/units/general/helpers/mod_rewrite_helper.php (.../mod_rewrite_helper.php) (revision 6031) +++ branches/unlabeled/unlabeled-1.4.2/core/units/general/helpers/mod_rewrite_helper.php (.../mod_rewrite_helper.php) (revision 6078) @@ -211,6 +211,12 @@ function GetItemTemplate($category, $module_prefix) { + if (!is_array($category)) { + $category = $this->Conn->GetRow(' + SELECT c.ParentPath, c.CategoryId FROM '.TABLE_PREFIX.'Category AS c + WHERE + c.CategoryId = '.$category); + } $parent_path = implode(',',explode('|', substr($category['ParentPath'], 1, -1))); // item template is stored in module' system custom field - need to get that field Id