From: Amir E. Aharoni Date: Tue, 17 Jan 2012 00:17:55 +0000 (+0000) Subject: Follow up to r105855 - now with updated phpunit tests. X-Git-Tag: 1.31.0-rc.0~25233 X-Git-Url: http://git.cyclocoop.org/%22.%24h.%22?a=commitdiff_plain;h=9691721f65bd146cfd1a767bd00fb641a0f75fc5;p=lhc%2Fweb%2Fwiklou.git Follow up to r105855 - now with updated phpunit tests. --- diff --git a/includes/Linker.php b/includes/Linker.php index d4fcb2fd8d..ab921d7f36 100644 --- a/includes/Linker.php +++ b/includes/Linker.php @@ -1178,7 +1178,6 @@ class Linker { $link = ''; } } - $auto = "$link$auto"; if ( $pre ) { # written summary $presep autocomment (summary /* section */) $auto = wfMsgExt( 'autocomment-prefix', array( 'escapenoentities', 'content' ) ) . $auto; @@ -1188,7 +1187,7 @@ class Linker { $auto .= wfMsgExt( 'colon-separator', array( 'escapenoentities', 'content' ) ); } $auto = '' . $auto . ''; - $comment = $pre . $auto . $post; + $comment = $pre . $link . $wgLang->getDirMark() . '' . $auto . $post . ''; return $comment; } diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index 9dc3a91056..9c276e020b 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -8479,7 +8479,7 @@ comment title=[[Main Page]] !! input /* External links */ removed bogus entries !! result -→External links: removed bogus entries +→‎External links: removed bogus entries !!end !! test @@ -8489,7 +8489,7 @@ comment local title=[[Main Page]] !! input /* External links */ removed bogus entries !! result -→External links: removed bogus entries +→‎External links: removed bogus entries !!end !! test @@ -8576,7 +8576,7 @@ title=[[Main Page]] !!input /* __hello__world__ */ !! result -→__hello__world__ +→‎__hello__world__ !! end !! test