From: Robin Pepermans Date: Thu, 7 Jul 2011 16:15:27 +0000 (+0000) Subject: (Update for r91646) Use mw-content-ltr/rtl so bullet list shows properly where user... X-Git-Tag: 1.31.0-rc.0~29015 X-Git-Url: https://git.cyclocoop.org/%27.%24link.%27?a=commitdiff_plain;h=1e99f137f5478e7e93b1f0eccb93d6e9c4f34f8a;p=lhc%2Fweb%2Fwiklou.git (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. --- 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; }