http://www.mediawiki.org/wiki/Special:Code/MediaWiki/97588

Revision: 97588
Author:   reedy
Date:     2011-09-20 00:30:32 +0000 (Tue, 20 Sep 2011)
Log Message:
-----------
PHP fatal error in 
/usr/local/apache/common-local/php-1.18/includes/OutputPage.php line 2961: 
Call to undefined method OutputPage::getLang()

Modified Paths:
--------------
    branches/REL1_18/phase3/includes/OutputPage.php
    branches/wmf/1.18wmf1/includes/OutputPage.php

Modified: branches/REL1_18/phase3/includes/OutputPage.php
===================================================================
--- branches/REL1_18/phase3/includes/OutputPage.php     2011-09-20 00:27:26 UTC 
(rev 97587)
+++ branches/REL1_18/phase3/includes/OutputPage.php     2011-09-20 00:30:32 UTC 
(rev 97588)
@@ -2958,7 +2958,8 @@
         * @param $flip Boolean: Whether to flip the CSS if needed
         */
        public function addInlineStyle( $style_css, $flip = false ) {
-               if( $flip && $this->getLang()->isRTL() ) {
+               global $wgLang;
+               if( $flip && $wgLang->isRTL() ) {
                        # If wanted, and the interface is right-to-left, flip 
the CSS
                        $style_css = CSSJanus::transform( $style_css, true, 
false );
                }

Modified: branches/wmf/1.18wmf1/includes/OutputPage.php
===================================================================
--- branches/wmf/1.18wmf1/includes/OutputPage.php       2011-09-20 00:27:26 UTC 
(rev 97587)
+++ branches/wmf/1.18wmf1/includes/OutputPage.php       2011-09-20 00:30:32 UTC 
(rev 97588)
@@ -2958,7 +2958,8 @@
         * @param $flip Boolean: Whether to flip the CSS if needed
         */
        public function addInlineStyle( $style_css, $flip = false ) {
-               if( $flip && $this->getLang()->isRTL() ) {
+               global $wgLang;
+               if( $flip && $wgLang->isRTL() ) {
                        # If wanted, and the interface is right-to-left, flip 
the CSS
                        $style_css = CSSJanus::transform( $style_css, true, 
false );
                }


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to