From 4b439bb6ad97966287004ba32d4ffe2c52ac477e Mon Sep 17 00:00:00 2001 From: "Amir E. Aharoni" Date: Tue, 13 Mar 2012 23:09:06 +0000 Subject: [PATCH] Bug 35034 - moved autocomment-prefix between the prefix and the arrow. Follow up to r109086. --- includes/Linker.php | 2 +- tests/parser/parserTests.txt | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/includes/Linker.php b/includes/Linker.php index 917f438c09..918bebcd83 100644 --- a/includes/Linker.php +++ b/includes/Linker.php @@ -1193,7 +1193,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 6f5702d2e7..65bd8258dc 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -8482,6 +8482,16 @@ comment title=[[Main Page]] →‎External links: removed bogus entries !!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 - →‎External links: removed bogus entries +!!end + !! test Edit comment with section link (local, eg in diff view) !! options -- 2.20.1