Index: trunk/core/units/categories/categories_tag_processor.php =================================================================== diff -u -r6583 -r7391 --- trunk/core/units/categories/categories_tag_processor.php (.../categories_tag_processor.php) (revision 6583) +++ trunk/core/units/categories/categories_tag_processor.php (.../categories_tag_processor.php) (revision 7391) @@ -30,6 +30,11 @@ function ItemIcon($params) { + // only for categories, not structure + if ($this->Prefix != 'c') { + return parent::ItemIcon($params); + } + $object =& $this->Application->recallObject($this->getPrefixSpecial(), $this->Prefix, $params); $status = $object->GetDBField('Status'); if($status == 1) @@ -286,7 +291,7 @@ } else { return false; - } + } } /** @@ -373,8 +378,20 @@ return $ret; } + /** + * Parses warning block, but with style="display: none;". Used during permissions saving from AJAX + * + * @param Array $params + * @return string + */ function SaveWarning($params) { + if ($this->Prefix != 'c') { + // don't use this method for other prefixes then Category, that use this tag processor + parent::SaveWarning($params); + return ; + } + $main_prefix = getArrayValue($params, 'main_prefix'); if ($main_prefix && $main_prefix != '$main_prefix') { $top_prefix = $main_prefix; @@ -383,7 +400,7 @@ $top_prefix = $this->Application->GetTopmostPrefix($this->Prefix); } - $temp_tables = $this->Application->GetVar($top_prefix.'_mode') == 't'; + $temp_tables = substr($this->Application->GetVar($top_prefix.'_mode'), 0, 1) == 't'; $modified = $this->Application->RecallVar($top_prefix.'_modified'); if (!$temp_tables) {