From: Platonides Date: Tue, 19 Jul 2011 20:36:09 +0000 (+0000) Subject: Follow-up r91518 X-Git-Tag: 1.31.0-rc.0~28737 X-Git-Url: https://git.cyclocoop.org/%7B%7B%20url_for%28?a=commitdiff_plain;h=b46c0c5dc9e78ad152d3c22ae29636d81bdd0a40;p=lhc%2Fweb%2Fwiklou.git Follow-up r91518 --- diff --git a/includes/OutputPage.php b/includes/OutputPage.php index 0b4f8137bc..c9b5c4b2b7 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -2261,14 +2261,16 @@ $templates * @return String: The doctype, opening , and head element. */ public function headElement( Skin $sk, $includeStyle = true ) { - global $wgUseTrackbacks, $wgLang; + global $wgLang, $wgContLang, $wgUseTrackbacks; + $userdir = $wgLang->getDir(); + $sitedir = $wgContLang->getDir(); if ( $sk->commonPrintStylesheet() ) { $this->addModuleStyles( 'mediawiki.legacy.wikiprintable' ); } $sk->setupUserCss( $this ); - $ret = Html::htmlHeader( array( 'lang' => $wgLang->getCode(), 'dir' => $wgLang->getDir() ) ); + $ret = Html::htmlHeader( array( 'lang' => $wgLang->getCode(), 'dir' => $userdir ) ); if ( $this->getHTMLTitle() == '' ) { $this->setHTMLTitle( wfMsg( 'pagetitle', $this->getPageTitle() ) ); @@ -2315,9 +2317,6 @@ $templates } # Classes for LTR/RTL directionality support - global $wgLang, $wgContLang; - $userdir = $wgLang->getDir(); - $sitedir = $wgContLang->getDir(); $bodyAttrs['class'] = "mediawiki $userdir sitedir-$sitedir"; if ( $this->getContext()->getLang()->capitalizeAllNouns() ) {