Index: trunk/phase3/includes/Pager.php |
— | — | @@ -945,7 +945,7 @@ |
946 | 946 | * A navigation bar with images |
947 | 947 | */ |
948 | 948 | function getNavigationBar() { |
949 | | - global $wgStylePath, $wgContLang, $wgLang, $wgBetterDirectionality; |
| 949 | + global $wgStylePath; |
950 | 950 | |
951 | 951 | if ( !$this->isNavigationBarShown() ) { |
952 | 952 | return ''; |
— | — | @@ -970,8 +970,7 @@ |
971 | 971 | 'next' => 'arrow_disabled_right_25.png', |
972 | 972 | 'last' => 'arrow_disabled_last_25.png', |
973 | 973 | ); |
974 | | - $isRTL = ( $wgBetterDirectionality ? $wgLang->isRTL() : $wgContLang->isRTL() ); |
975 | | - if( $isRTL ) { |
| 974 | + if( wfUILang()->isRTL() ) { |
976 | 975 | $keys = array_keys( $labels ); |
977 | 976 | $images = array_combine( $keys, array_reverse( $images ) ); |
978 | 977 | $disabledImages = array_combine( $keys, array_reverse( $disabledImages ) ); |