r46735 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r46734‎ | r46735 | r46736 >
Date:21:15, 2 February 2009
Author:aaron
Status:deferred
Tags:
Comment:
Remove dead reply links (bug 17323)
Modified paths:
  • /trunk/extensions/CodeReview/CodeRevisionView.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CodeReview/CodeRevisionView.php
@@ -419,13 +419,13 @@
420420 }
421421
422422 protected function commentReplyLink( $id ) {
 423+ global $wgUser;
 424+ if( !$wgUser->isAllowed('codereview-post-comment') ) return '';
423425 $repo = $this->mRepo->getName();
424426 $rev = $this->mRev->getId();
425427 $self = SpecialPage::getTitleFor( 'Code', "$repo/$rev/reply/$id" );
426428 $self->setFragment( "#c$id" );
427 - return '[' .
428 - $this->mSkin->link( $self, wfMsg( 'codereview-reply-link' ) ) .
429 - ']';
 429+ return '[' . $this->mSkin->link( $self, wfMsg( 'codereview-reply-link' ) ) . ']';
430430 }
431431
432432 protected function postCommentForm( $parent=null ) {

Status & tagging log