aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmir E. Aharoni <amire80@users.mediawiki.org>2012-03-13 23:09:06 +0000
committerReedy <reedy@wikimedia.org>2012-03-22 22:10:39 +0000
commit39db773837c064c558bf489f64247b18d3949a89 (patch)
tree11b318f53436d8739d3b16f5ade2cd87f1bc8fbb
parent9fbf1fa5329d0330238d3e71098908c8be3f19ec (diff)
downloadmediawikicore-39db773837c064c558bf489f64247b18d3949a89.tar.gz
mediawikicore-39db773837c064c558bf489f64247b18d3949a89.zip
Bug 35034 - moved autocomment-prefix between the prefix and the arrow. Follow up to r109086.
Notes
Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/113782
-rw-r--r--includes/Linker.php2
-rw-r--r--tests/parser/parserTests.txt10
2 files changed, 11 insertions, 1 deletions
diff --git a/includes/Linker.php b/includes/Linker.php
index a0da2af77071..3691d0404efd 100644
--- a/includes/Linker.php
+++ b/includes/Linker.php
@@ -1182,7 +1182,7 @@ class Linker {
}
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)
diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt
index b4f5c93e40f4..d304b19c76a0 100644
--- a/tests/parser/parserTests.txt
+++ b/tests/parser/parserTests.txt
@@ -8483,6 +8483,16 @@ comment title=[[Main Page]]
!!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]]