http://www.mediawiki.org/wiki/Special:Code/MediaWiki/88605
Revision: 88605
Author: reedy
Date: 2011-05-22 20:56:22 +0000 (Sun, 22 May 2011)
Log Message:
-----------
* (bug 28091) CR comments can show Edit section links
Bit of a hack, just append __NOEDITSECTION__ to each comment before parsing.
Unfortunately, the parser doesn't expose any other way of setting this
property, so this allows it to be done explicitally and obviously at the point
of parsing
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:44:00 UTC
(rev 88604)
+++ trunk/extensions/CodeReview/ui/CodeRevisionView.php 2011-05-22 20:56:22 UTC
(rev 88605)
@@ -696,7 +696,7 @@
$this->commentReplyLink( $comment->id ) .
'</div>' .
'<div class="mw-codereview-comment-text">' .
- $wgOut->parse( $this->codeCommentLinkerWiki->link(
$comment->text ) ) .
+ $wgOut->parse( "__NOEDITSECTION__" .
$this->codeCommentLinkerWiki->link( $comment->text ) ) .
'</div>' .
$replyForm .
'</div>';
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs