From: Robin Pepermans Date: Thu, 30 Jun 2011 15:20:57 +0000 (+0000) Subject: Simpler code X-Git-Tag: 1.31.0-rc.0~29159 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_aide%28?a=commitdiff_plain;h=9b9dc2fdfdf2ec6d749bb8e73da554c8f8db853e;p=lhc%2Fweb%2Fwiklou.git Simpler code --- diff --git a/includes/Pager.php b/includes/Pager.php index 3d87eb736a..0e04eacdd4 100644 --- a/includes/Pager.php +++ b/includes/Pager.php @@ -945,7 +945,7 @@ abstract class TablePager extends IndexPager { * A navigation bar with images */ function getNavigationBar() { - global $wgStylePath, $wgContLang, $wgLang, $wgBetterDirectionality; + global $wgStylePath; if ( !$this->isNavigationBarShown() ) { return ''; @@ -970,8 +970,7 @@ abstract class TablePager extends IndexPager { 'next' => 'arrow_disabled_right_25.png', 'last' => 'arrow_disabled_last_25.png', ); - $isRTL = ( $wgBetterDirectionality ? $wgLang->isRTL() : $wgContLang->isRTL() ); - if( $isRTL ) { + if( wfUILang()->isRTL() ) { $keys = array_keys( $labels ); $images = array_combine( $keys, array_reverse( $images ) ); $disabledImages = array_combine( $keys, array_reverse( $disabledImages ) );