Skip to content

Commit

Permalink
Fix Kunena#454 Kunena statistics: Most Popular Topics links are wrong
Browse files Browse the repository at this point in the history
  • Loading branch information
mahagr committed Apr 5, 2012
1 parent 858f77a commit ef5ddb2
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -169,7 +169,7 @@ public function loadTopTopics($limit=0) {
$top = reset($this->topTopics);
foreach ($this->topTopics as $item) {
$item->count = $item->posts;
$item->link = JHTML::_('kunenaforum.link', $item->getUrl(), KunenaHtmlParser::parseText ($item->subject));
$item->link = JHTML::_('kunenaforum.link', $item->getUrl(null, 'object'), KunenaHtmlParser::parseText ($item->subject));
$item->percent = round(100 * $item->count / $top->posts);
}
$top->title = JText::_('COM_KUNENA_STAT_TOP') .' '. $limit .' '. JText::_('COM_KUNENA_STAT_POPULAR') .' '. JText::_('COM_KUNENA_STAT_POPULAR_USER_KGSG');
Expand Down Expand Up @@ -235,7 +235,7 @@ public function loadTopPolls($limit=0) {
$top = reset($this->topPolls);
foreach ($this->topPolls as $item) {
$item->count = $polls[$item->id]->count;
$item->link = JHTML::_('kunenaforum.link', $item->getUrl(), KunenaHtmlParser::parseText ($item->subject));
$item->link = JHTML::_('kunenaforum.link', $item->getUrl(null, 'object'), KunenaHtmlParser::parseText ($item->subject));
$item->percent = round(100 * $item->count / $top->count);
}
$top->title = JText::_('COM_KUNENA_STAT_TOP') .' '. $limit .' '. JText::_('COM_KUNENA_STAT_POPULAR') .' '. JText::_('COM_KUNENA_STAT_POPULAR_POLLS_KGSG');
Expand Down

0 comments on commit ef5ddb2

Please sign in to comment.