Index: branches/wmf/1.18wmf1/includes/OutputPage.php |
— | — | @@ -2958,7 +2958,8 @@ |
2959 | 2959 | * @param $flip Boolean: Whether to flip the CSS if needed |
2960 | 2960 | */ |
2961 | 2961 | public function addInlineStyle( $style_css, $flip = false ) { |
2962 | | - if( $flip && $this->getLang()->isRTL() ) { |
| 2962 | + global $wgLang; |
| 2963 | + if( $flip && $wgLang->isRTL() ) { |
2963 | 2964 | # If wanted, and the interface is right-to-left, flip the CSS |
2964 | 2965 | $style_css = CSSJanus::transform( $style_css, true, false ); |
2965 | 2966 | } |
Index: branches/REL1_18/phase3/includes/OutputPage.php |
— | — | @@ -2958,7 +2958,8 @@ |
2959 | 2959 | * @param $flip Boolean: Whether to flip the CSS if needed |
2960 | 2960 | */ |
2961 | 2961 | public function addInlineStyle( $style_css, $flip = false ) { |
2962 | | - if( $flip && $this->getLang()->isRTL() ) { |
| 2962 | + global $wgLang; |
| 2963 | + if( $flip && $wgLang->isRTL() ) { |
2963 | 2964 | # If wanted, and the interface is right-to-left, flip the CSS |
2964 | 2965 | $style_css = CSSJanus::transform( $style_css, true, false ); |
2965 | 2966 | } |