Index: branches/unlabeled/unlabeled-1.11.2/kernel/units/general/cat_tag_processor.php =================================================================== diff -u -r5802 -r5858 --- branches/unlabeled/unlabeled-1.11.2/kernel/units/general/cat_tag_processor.php (.../cat_tag_processor.php) (revision 5802) +++ branches/unlabeled/unlabeled-1.11.2/kernel/units/general/cat_tag_processor.php (.../cat_tag_processor.php) (revision 5858) @@ -2,6 +2,19 @@ class kCatDBTagProcessor extends kDBTagProcessor { + /** + * Permission Helper + * + * @var kPermissionsHelper + */ + var $PermHelper = null; + + function kCatDBTagProcessor() + { + parent::kDBTagProcessor(); + $this->PermHelper = $this->Application->recallObject('PermissionsHelper'); + } + function ItemIcon($params) { $object =& $this->Application->recallObject($this->getPrefixSpecial(),$this->Prefix, $params); @@ -190,6 +203,20 @@ } return $category_path; } + + /** + * Allows to determine if original value should be shown + * + * @param Array $params + * @return bool + */ + function DisplayOriginal($params) + { + // original id found & greather then zero + show original + $display_original = isset($params['display_original']) && $params['display_original']; + return $display_original && $this->Application->GetVar($this->Prefix.'.original_id'); + } + } ?> \ No newline at end of file