r72366 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r72365‎ | r72366 | r72367 >
Date:10:24, 4 September 2010
Author:tparscal
Status:ok
Tags:
Comment:
Allow flipping skin output on $wgLang rather than $wgContLang. Resource loader gracefully flips CSS for us, so this is finally an option.
Modified paths:
  • /trunk/phase3/skins/Vector.php (modified) (history)

Diff [purge]

Index: trunk/phase3/skins/Vector.php
@@ -364,7 +364,7 @@
365365 * Outputs the entire contents of the XHTML page
366366 */
367367 public function execute() {
368 - global $wgRequest, $wgContLang;
 368+ global $wgRequest, $wgLang;
369369
370370 $this->skin = $this->data['skin'];
371371 $action = $wgRequest->getText( 'action' );
@@ -456,7 +456,7 @@
457457 }
458458 }
459459 // Reverse horizontally rendered navigation elements
460 - if ( $wgContLang->isRTL() ) {
 460+ if ( $wgLang->isRTL() ) {
461461 $this->data['view_urls'] =
462462 array_reverse( $this->data['view_urls'] );
463463 $this->data['namespace_urls'] =

Status & tagging log