Index: trunk/extensions/Comments/CommentClass.php |
— | — | @@ -779,13 +779,15 @@ |
780 | 780 | |
781 | 781 | // Reply Link (does not appear on child comments) |
782 | 782 | $replyRow = ''; |
783 | | - if( $comment['Comment_Parent_ID'] == 0 ) { |
784 | | - if( $replyRow ) { |
785 | | - $replyRow .= ' | '; |
| 783 | + if ( $wgUser->isAllowed( 'comment' ) ) { |
| 784 | + if( $comment['Comment_Parent_ID'] == 0 ) { |
| 785 | + if( $replyRow ) { |
| 786 | + $replyRow .= ' | '; |
| 787 | + } |
| 788 | + $replyRow .= " | <a href=\"#end\" rel=\"nofollow\" class=\"comments-reply-to\" data-comment-id=\"{$comment['CommentID']}\" data-comments-safe-username=\"" . |
| 789 | + htmlspecialchars( $CommentReplyTo, ENT_QUOTES ) . '">' . |
| 790 | + wfMsg( 'comment-reply' ) . '</a>'; |
786 | 791 | } |
787 | | - $replyRow .= " | <a href=\"#end\" rel=\"nofollow\" class=\"comments-reply-to\" data-comment-id=\"{$comment['CommentID']}\" data-comments-safe-username=\"" . |
788 | | - htmlspecialchars( $CommentReplyTo, ENT_QUOTES ) . '">' . |
789 | | - wfMsg( 'comment-reply' ) . '</a>'; |
790 | 792 | } |
791 | 793 | |
792 | 794 | if( $comment['Comment_Parent_ID'] == 0 ) { |