Index: branches/unlabeled/unlabeled-1.78.2/core/kernel/db/db_tag_processor.php =================================================================== diff -u -r8211 -r8276 --- branches/unlabeled/unlabeled-1.78.2/core/kernel/db/db_tag_processor.php (.../db_tag_processor.php) (revision 8211) +++ branches/unlabeled/unlabeled-1.78.2/core/kernel/db/db_tag_processor.php (.../db_tag_processor.php) (revision 8276) @@ -1897,6 +1897,17 @@ } return $o; } + + /** + * Checks if current prefix is main item + * + * @param Array $params + * @return bool + */ + function IsTopmostPrefix($params) + { + return $this->Prefix == $this->Application->GetTopmostPrefix($this->Prefix); + } } ?> \ No newline at end of file