Recommitting r108367 to break unit tests as phpunit on ubuntu seems FUBAR'd again
authorSam Reed <reedy@users.mediawiki.org>
Sat, 14 Jan 2012 00:09:58 +0000 (00:09 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Sat, 14 Jan 2012 00:09:58 +0000 (00:09 +0000)
Will revert after

includes/Linker.php

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