Index: branches/5.3.x/core/units/helpers/rating_helper.php =================================================================== diff -u -r15677 -r15698 --- branches/5.3.x/core/units/helpers/rating_helper.php (.../rating_helper.php) (revision 15677) +++ branches/5.3.x/core/units/helpers/rating_helper.php (.../rating_helper.php) (revision 15698) @@ -1,6 +1,6 @@ Application->getUnitOption($object->Prefix, 'PermItemPrefix'); + $perm_prefix = $object->getUnitConfig()->getPermItemPrefix(); $static = !$this->Application->CheckPermission($perm_prefix . '.RATE', 0, $object->GetDBField('CategoryId')); // 2. user isn't voting too frequently @@ -178,7 +178,7 @@ return '@err:' . $this->_replaceInPhrase('already_voted'); } - $perm_prefix = $this->Application->getUnitOption($object->Prefix, 'PermItemPrefix'); + $perm_prefix = $object->getUnitConfig()->getPermItemPrefix(); $can_rate = $this->Application->CheckPermission($perm_prefix . '.RATE', 0, $object->GetDBField('CategoryId')); $rating = (int)$this->Application->GetVar('rating'); // not numeric rating is from GoogleBot :( $additional_style = $this->Application->GetVar('size'); @@ -257,7 +257,7 @@ /* @var $spam_helper SpamHelper */ // 2. user isn't voting too frequently - $config_mapping = $this->Application->getUnitOption($object->Prefix, 'ConfigMapping'); + $config_mapping = $object->getUnitConfig()->getConfigMapping(); $review_settings = $config_mapping['RatingDelayValue'] . ':' . $config_mapping['RatingDelayInterval']; $spam_helper->InitHelper($object->GetDBField('ResourceId'), 'Rating', $review_settings, $object->GetCol('ResourceId'));