From 9b9dc2fdfdf2ec6d749bb8e73da554c8f8db853e Mon Sep 17 00:00:00 2001 From: Robin Pepermans Date: Thu, 30 Jun 2011 15:20:57 +0000 Subject: [PATCH] Simpler code --- includes/Pager.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 ) ); -- 2.20.1