Index: trunk/phase3/tests/parser/parserTests.txt |
— | — | @@ -8483,6 +8483,16 @@ |
8484 | 8484 | !!end |
8485 | 8485 | |
8486 | 8486 | !! test |
| 8487 | +Edit comment with section link and text before it (non-local, eg in history list) |
| 8488 | +!! options |
| 8489 | +comment title=[[Main Page]] |
| 8490 | +!! input |
| 8491 | +pre-comment text /* External links */ removed bogus entries |
| 8492 | +!! result |
| 8493 | +pre-comment text - <a href="https://www.mediawiki.org/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span> |
| 8494 | +!!end |
| 8495 | + |
| 8496 | +!! test |
8487 | 8497 | Edit comment with section link (local, eg in diff view) |
8488 | 8498 | !! options |
8489 | 8499 | comment local title=[[Main Page]] |
Index: trunk/phase3/includes/Linker.php |
— | — | @@ -1193,7 +1193,7 @@ |
1194 | 1194 | } |
1195 | 1195 | if ( $pre ) { |
1196 | 1196 | # written summary $presep autocomment (summary /* section */) |
1197 | | - $auto = wfMsgExt( 'autocomment-prefix', array( 'escapenoentities', 'content' ) ) . $auto; |
| 1197 | + $pre .= wfMsgExt( 'autocomment-prefix', array( 'escapenoentities', 'content' ) ); |
1198 | 1198 | } |
1199 | 1199 | if ( $post ) { |
1200 | 1200 | # autocomment $postsep written summary (/* section */ summary) |