Index: trunk/extensions/CodeReview/ui/CodeRevisionView.php |
— | — | @@ -680,6 +680,10 @@ |
681 | 681 | $permaLink = $this->skin->link( $this->commentLink( $comment->id ), "#" ); |
682 | 682 | } |
683 | 683 | |
| 684 | + $popts = $wgOut->parserOptions(); |
| 685 | + $popts->setEditSection( false ); |
| 686 | + $wgOut->parserOptions( $popts ); |
| 687 | + |
684 | 688 | return Xml::openElement( 'div', |
685 | 689 | array( |
686 | 690 | 'class' => 'mw-codereview-comment', |
— | — | @@ -696,7 +700,7 @@ |
697 | 701 | $this->commentReplyLink( $comment->id ) . |
698 | 702 | '</div>' . |
699 | 703 | '<div class="mw-codereview-comment-text">' . |
700 | | - $wgOut->parse( "__NOEDITSECTION__" . $this->codeCommentLinkerWiki->link( $comment->text ) ) . |
| 704 | + $wgOut->parse( $this->codeCommentLinkerWiki->link( $comment->text ) ) . |
701 | 705 | '</div>' . |
702 | 706 | $replyForm . |
703 | 707 | '</div>'; |
— | — | @@ -713,7 +717,9 @@ |
714 | 718 | } |
715 | 719 | |
716 | 720 | protected function commentReplyLink( $id ) { |
717 | | - if ( !$this->canPostComments() ) return ''; |
| 721 | + if ( !$this->canPostComments() ) { |
| 722 | + return ''; |
| 723 | + } |
718 | 724 | $repo = $this->mRepo->getName(); |
719 | 725 | $rev = $this->mRev->getId(); |
720 | 726 | $self = SpecialPage::getTitleFor( 'Code', "$repo/$rev/reply/$id" ); |