Index: trunk/kernel/include/category.php =================================================================== diff -u -r1185 -r1215 --- trunk/kernel/include/category.php (.../category.php) (revision 1185) +++ trunk/kernel/include/category.php (.../category.php) (revision 1215) @@ -176,12 +176,8 @@ while($rs && !$rs->EOF) - { - - if(!is_null($target_template)) - { - $var_list_update["t"] = $target_template; - } + { + $var_list_update["t"] = !is_null($target_template)? $target_template : $var_list["t"]; $m_var_list_update["cat"] = $rs->fields["CategoryId"]; $m_var_list_update["p"] = "1"; $cat_name = $rs->fields['Name']; @@ -894,7 +890,8 @@ $limit = ((int)$element->attributes["_limit"]>0)? $element->attributes["_limit"] : NULL; $separator = $element->attributes["_separator"]; $anchor = (int)($element->attributes["_anchor"])? 1 : NULL; - $template = strlen($element->attributes["_TargetTemplate"])? $element->attributes["_TargetTemplate"] : NULL; + $templ = $element->GetAttributeByName("_TargetTemplate"); + $template = !empty($templ)? $templ : NULL; $ending = strlen($element->attributes["_ending"])? $element->attributes["_ending"] : NULL; $class = strlen($element->attributes["_class"])? $element->attributes["_class"] : NULL;