From 8ebfe808d48c35b6a28f947ffb9eb34449cfe57f Mon Sep 17 00:00:00 2001 From: Trevor Parscal Date: Sat, 4 Sep 2010 10:24:23 +0000 Subject: [PATCH] Allow flipping skin output on $wgLang rather than $wgContLang. Resource loader gracefully flips CSS for us, so this is finally an option. --- skins/Vector.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/skins/Vector.php b/skins/Vector.php index d21bade986..90f9072fd2 100644 --- a/skins/Vector.php +++ b/skins/Vector.php @@ -364,7 +364,7 @@ class VectorTemplate extends QuickTemplate { * Outputs the entire contents of the XHTML page */ public function execute() { - global $wgRequest, $wgContLang; + global $wgRequest, $wgLang; $this->skin = $this->data['skin']; $action = $wgRequest->getText( 'action' ); @@ -456,7 +456,7 @@ class VectorTemplate extends QuickTemplate { } } // Reverse horizontally rendered navigation elements - if ( $wgContLang->isRTL() ) { + if ( $wgLang->isRTL() ) { $this->data['view_urls'] = array_reverse( $this->data['view_urls'] ); $this->data['namespace_urls'] = -- 2.20.1