(Update for r91646) Use mw-content-ltr/rtl so bullet list shows properly where user...
authorRobin Pepermans <robin@users.mediawiki.org>
Thu, 7 Jul 2011 16:15:27 +0000 (16:15 +0000)
committerRobin Pepermans <robin@users.mediawiki.org>
Thu, 7 Jul 2011 16:15:27 +0000 (16:15 +0000)
includes/Article.php
skins/common/shared.css

index 84bb07a..d7c8a54 100644 (file)
@@ -609,9 +609,13 @@ class Article extends Page {
         * page views.
         */
        protected function showCssOrJsPage() {
-               global $wgOut;
+               global $wgOut, $wgLang;
+
+               $dir = $wgLang->getDir();
+               $lang = $wgLang->getCode();
 
-               $wgOut->wrapWikiMsg( "<div id='mw-clearyourcache'>\n$1\n</div>", 'clearyourcache' );
+               $wgOut->wrapWikiMsg( "<div id='mw-clearyourcache' lang='$lang' dir='$dir' class='mw-content-$dir'>\n$1\n</div>",
+                       'clearyourcache' );
 
                // Give hooks a chance to customise the output
                if ( wfRunHooks( 'ShowRawCssJs', array( $this->mContent, $this->getTitle(), $wgOut ) ) ) {
index 77dad1e..9ed1085 100644 (file)
@@ -771,7 +771,7 @@ th.headerSortDown {
        unicode-bidi: embed;
 }
 
-#mw-clearyourcache, #mw-sitecsspreview, #mw-sitejsspreview, #mw-usercsspreview, #mw-userjspreview {
+#mw-clearyourcache, #mw-sitecsspreview, #mw-sitejspreview, #mw-usercsspreview, #mw-userjspreview {
        direction: ltr;
        unicode-bidi: embed;
 }