Index: trunk/phase3/skins/common/shared.css |
— | — | @@ -771,7 +771,7 @@ |
772 | 772 | unicode-bidi: embed; |
773 | 773 | } |
774 | 774 | |
775 | | -#mw-clearyourcache, #mw-sitecsspreview, #mw-sitejsspreview, #mw-usercsspreview, #mw-userjspreview { |
| 775 | +#mw-clearyourcache, #mw-sitecsspreview, #mw-sitejspreview, #mw-usercsspreview, #mw-userjspreview { |
776 | 776 | direction: ltr; |
777 | 777 | unicode-bidi: embed; |
778 | 778 | } |
Index: trunk/phase3/includes/Article.php |
— | — | @@ -609,10 +609,14 @@ |
610 | 610 | * page views. |
611 | 611 | */ |
612 | 612 | protected function showCssOrJsPage() { |
613 | | - global $wgOut; |
| 613 | + global $wgOut, $wgLang; |
614 | 614 | |
615 | | - $wgOut->wrapWikiMsg( "<div id='mw-clearyourcache'>\n$1\n</div>", 'clearyourcache' ); |
| 615 | + $dir = $wgLang->getDir(); |
| 616 | + $lang = $wgLang->getCode(); |
616 | 617 | |
| 618 | + $wgOut->wrapWikiMsg( "<div id='mw-clearyourcache' lang='$lang' dir='$dir' class='mw-content-$dir'>\n$1\n</div>", |
| 619 | + 'clearyourcache' ); |
| 620 | + |
617 | 621 | // Give hooks a chance to customise the output |
618 | 622 | if ( wfRunHooks( 'ShowRawCssJs', array( $this->mContent, $this->getTitle(), $wgOut ) ) ) { |
619 | 623 | // Wrap the whole lot in a <pre> and don't parse |