https://www.mediawiki.org/wiki/Special:Code/MediaWiki/113782
Revision: 113782
Author: amire80
Date: 2012-03-13 23:09:06 +0000 (Tue, 13 Mar 2012)
Log Message:
-----------
Bug 35034 - moved autocomment-prefix between the prefix and the arrow. Follow
up to r109086.
Modified Paths:
--------------
trunk/phase3/includes/Linker.php
trunk/phase3/tests/parser/parserTests.txt
Modified: trunk/phase3/includes/Linker.php
===================================================================
--- trunk/phase3/includes/Linker.php 2012-03-13 23:02:40 UTC (rev 113781)
+++ trunk/phase3/includes/Linker.php 2012-03-13 23:09:06 UTC (rev 113782)
@@ -1193,7 +1193,7 @@
}
if ( $pre ) {
# written summary $presep autocomment (summary /*
section */)
- $auto = wfMsgExt( 'autocomment-prefix', array(
'escapenoentities', 'content' ) ) . $auto;
+ $pre .= wfMsgExt( 'autocomment-prefix', array(
'escapenoentities', 'content' ) );
}
if ( $post ) {
# autocomment $postsep written summary (/* section */
summary)
Modified: trunk/phase3/tests/parser/parserTests.txt
===================================================================
--- trunk/phase3/tests/parser/parserTests.txt 2012-03-13 23:02:40 UTC (rev
113781)
+++ trunk/phase3/tests/parser/parserTests.txt 2012-03-13 23:09:06 UTC (rev
113782)
@@ -8483,6 +8483,16 @@
!!end
!! test
+Edit comment with section link and text before it (non-local, eg in history
list)
+!! options
+comment title=[[Main Page]]
+!! input
+pre-comment text /* External links */ removed bogus entries
+!! result
+pre-comment text - <a href="/wiki/Main_Page#External_links" title="Main
Page">→</a><span dir="auto"><span class="autocomment">External links: </span>
removed bogus entries</span>
+!!end
+
+!! test
Edit comment with section link (local, eg in diff view)
!! options
comment local title=[[Main Page]]
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs