http://www.mediawiki.org/wiki/Special:Code/MediaWiki/88606

Revision: 88606
Author:   reedy
Date:     2011-05-22 21:45:20 +0000 (Sun, 22 May 2011)
Log Message:
-----------
Followup r88591, mangle parseroptions instead

Modified Paths:
--------------
    trunk/extensions/CodeReview/ui/CodeRevisionView.php

Modified: trunk/extensions/CodeReview/ui/CodeRevisionView.php
===================================================================
--- trunk/extensions/CodeReview/ui/CodeRevisionView.php 2011-05-22 20:56:22 UTC 
(rev 88605)
+++ trunk/extensions/CodeReview/ui/CodeRevisionView.php 2011-05-22 21:45:20 UTC 
(rev 88606)
@@ -680,6 +680,10 @@
                        $permaLink = $this->skin->link( $this->commentLink( 
$comment->id ), "#" );
                }
 
+               $popts = $wgOut->parserOptions();
+               $popts->setEditSection( false );
+               $wgOut->parserOptions( $popts );
+
                return Xml::openElement( 'div',
                        array(
                                'class' => 'mw-codereview-comment',
@@ -696,7 +700,7 @@
                        $this->commentReplyLink( $comment->id ) .
                        '</div>' .
                        '<div class="mw-codereview-comment-text">' .
-                       $wgOut->parse( "__NOEDITSECTION__" . 
$this->codeCommentLinkerWiki->link( $comment->text ) ) .
+                       $wgOut->parse( $this->codeCommentLinkerWiki->link( 
$comment->text ) ) .
                        '</div>' .
                        $replyForm .
                        '</div>';
@@ -713,7 +717,9 @@
        }
 
        protected function commentReplyLink( $id ) {
-               if ( !$this->canPostComments() ) return '';
+               if ( !$this->canPostComments() ) {
+                       return '';
+               }
                $repo = $this->mRepo->getName();
                $rev = $this->mRev->getId();
                $self = SpecialPage::getTitleFor( 'Code', 
"$repo/$rev/reply/$id" );


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to