--- mambo/branches/4.6/mambots/content/mosvote.php 2006/01/26 20:11:56 194 +++ mambo/branches/4.6/mambots/content/mosvote.php 2006/01/31 12:11:42 213 @@ -15,12 +15,18 @@ function botVoting( &$row, &$params, $page=0 ) { global $mosConfig_live_site, $mosConfig_absolute_path, $cur_template; global $Itemid; - $id = $row->id; + if (get_class($row) != 'mosExtendedContent') return; + if (is_callable(array($row,'getId'))) $id = $row->getId(); + else $id = $row->id; $option = 'com_content'; $task = mosGetParam( $_REQUEST, 'task', '' ); $html = ''; if ($params->get( 'rating' ) && !$params->get( 'popup' )){ + if (is_callable(array($row,'getRating'))) $rating = $row->getRating(); + else $rating = $row->rating; + if (is_callable(array($row,'getRatingCount'))) $rating_count = $row->getRatingCount(); + else $rating_count = $row->rating_count; $html .= '