From 1e99f137f5478e7e93b1f0eccb93d6e9c4f34f8a Mon Sep 17 00:00:00 2001 From: Robin Pepermans Date: Thu, 7 Jul 2011 16:15:27 +0000 Subject: [PATCH] (Update for r91646) Use mw-content-ltr/rtl so bullet list shows properly where user direction != site direction. Also add lang & dir attribute, and fix typo in shared.css. --- includes/Article.php | 8 ++++++-- skins/common/shared.css | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/includes/Article.php b/includes/Article.php index 84bb07a7db..d7c8a54a8f 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -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( "
\n$1\n
", 'clearyourcache' ); + $wgOut->wrapWikiMsg( "
\n$1\n
", + 'clearyourcache' ); // Give hooks a chance to customise the output if ( wfRunHooks( 'ShowRawCssJs', array( $this->mContent, $this->getTitle(), $wgOut ) ) ) { diff --git a/skins/common/shared.css b/skins/common/shared.css index 77dad1e727..9ed108575d 100644 --- a/skins/common/shared.css +++ b/skins/common/shared.css @@ -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; } -- 2.20.1