Index: trunk/extensions/LiquidThreads/pages/TalkpageView.php |
— | — | @@ -546,7 +546,7 @@ |
547 | 547 | * Stolen from TablePager because it's pretty. |
548 | 548 | */ |
549 | 549 | function getNavigationBar() { |
550 | | - global $wgStylePath, $wgContLang; |
| 550 | + global $wgStylePath; |
551 | 551 | |
552 | 552 | if ( method_exists( $this, 'isNavigationBarShown' ) && |
553 | 553 | !$this->isNavigationBarShown() ) |
— | — | @@ -560,17 +560,22 @@ |
561 | 561 | 'last' => 'table_pager_last', |
562 | 562 | ); |
563 | 563 | $images = array( |
564 | | - 'first' => $wgContLang->isRTL() ? 'arrow_last_25.png' : 'arrow_first_25.png', |
565 | | - 'prev' => $wgContLang->isRTL() ? 'arrow_right_25.png' : 'arrow_left_25.png', |
566 | | - 'next' => $wgContLang->isRTL() ? 'arrow_left_25.png' : 'arrow_right_25.png', |
567 | | - 'last' => $wgContLang->isRTL() ? 'arrow_first_25.png' : 'arrow_last_25.png', |
| 564 | + 'first' => 'arrow_first_25.png', |
| 565 | + 'prev' => 'arrow_left_25.png', |
| 566 | + 'next' => 'arrow_right_25.png', |
| 567 | + 'last' => 'arrow_last_25.png', |
568 | 568 | ); |
569 | 569 | $disabledImages = array( |
570 | | - 'first' => $wgContLang->isRTL() ? 'arrow_disabled_last_25.png' : 'arrow_disabled_first_25.png', |
571 | | - 'prev' => $wgContLang->isRTL() ? 'arrow_disabled_right_25.png' : 'arrow_disabled_left_25.png', |
572 | | - 'next' => $wgContLang->isRTL() ? 'arrow_disabled_left_25.png' : 'arrow_disabled_right_25.png', |
573 | | - 'last' => $wgContLang->isRTL() ? 'arrow_disabled_first_25.png' : 'arrow_disabled_last_25.png', |
| 570 | + 'first' => 'arrow_disabled_first_25.png', |
| 571 | + 'prev' => 'arrow_disabled_left_25.png', |
| 572 | + 'next' => 'arrow_disabled_right_25.png', |
| 573 | + 'last' => 'arrow_disabled_last_25.png', |
574 | 574 | ); |
| 575 | + if( wfUILang()->isRTL() ) { |
| 576 | + $keys = array_keys( $labels ); |
| 577 | + $images = array_combine( $keys, array_reverse( $images ) ); |
| 578 | + $disabledImages = array_combine( $keys, array_reverse( $disabledImages ) ); |
| 579 | + } |
575 | 580 | |
576 | 581 | $linkTexts = array(); |
577 | 582 | $disabledTexts = array(); |