From b46c0c5dc9e78ad152d3c22ae29636d81bdd0a40 Mon Sep 17 00:00:00 2001 From: Platonides Date: Tue, 19 Jul 2011 20:36:09 +0000 Subject: [PATCH] Follow-up r91518 --- includes/OutputPage.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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() ) { -- 2.20.1