revert r108367 : breaks tests
authorAntoine Musso <hashar@users.mediawiki.org>
Mon, 9 Jan 2012 08:41:25 +0000 (08:41 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Mon, 9 Jan 2012 08:41:25 +0000 (08:41 +0000)
When doing a change that break tests, update the tests in the same
commit. That makes the change more obvious and let us merge in
another branch easily.

includes/Linker.php

index ab921d7..d4fcb2f 100644 (file)
@@ -1178,6 +1178,7 @@ class Linker {
                                $link = '';
                        }
                }
+               $auto = "$link$auto";
                if ( $pre ) {
                        # written summary $presep autocomment (summary /* section */)
                        $auto = wfMsgExt( 'autocomment-prefix', array( 'escapenoentities', 'content' ) ) . $auto;
@@ -1187,7 +1188,7 @@ class Linker {
                        $auto .= wfMsgExt( 'colon-separator', array( 'escapenoentities', 'content' ) );
                }
                $auto = '<span class="autocomment">' . $auto . '</span>';
-               $comment = $pre . $link . $wgLang->getDirMark() . '<span dir="auto">' . $auto . $post . '</span>';
+               $comment = $pre . $auto . $post;
                return $comment;
        }