Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Voting: use full discussionUrl so that the link won't break in Blog C…
…omments
  • Loading branch information
linc committed Aug 22, 2012
1 parent 2ee2a7e commit a17e219
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/Voting/class.voting.plugin.php
Expand Up @@ -193,9 +193,9 @@ public function DiscussionController_BeforeCommentDisplay_Handler($Sender) {
echo
Wrap($AnswerCount.' '.Plural($AnswerCount, 'Comment', 'Comments'), 'strong');
echo ' sorted by '
.Anchor('Votes', Url('?Sort=popular', TRUE), '', array('rel' => 'nofollow', 'class' => self::CommentSort() == 'popular' ? 'Active' : ''))
.Anchor('Votes', Url(DiscussionUrl($Sender->Discussion).'?Sort=popular', TRUE), '', array('rel' => 'nofollow', 'class' => self::CommentSort() == 'popular' ? 'Active' : ''))
.' '
.Anchor('Date Added', Url('?Sort=date', TRUE), '', array('rel' => 'nofollow', 'class' => self::CommentSort() == 'date' ? 'Active' : ''));
.Anchor('Date Added', Url(DiscussionUrl($Sender->Discussion).'?Sort=date', TRUE), '', array('rel' => 'nofollow', 'class' => self::CommentSort() == 'date' ? 'Active' : ''));
?>
</div>
</li>
Expand Down

0 comments on commit a17e219

Please sign in to comment.