Followup r85250; Revert a static method back to use of $wgRequest... :/ damnit resour...
authorDaniel Friesen <dantman@users.mediawiki.org>
Sun, 3 Apr 2011 12:55:48 +0000 (12:55 +0000)
committerDaniel Friesen <dantman@users.mediawiki.org>
Sun, 3 Apr 2011 12:55:48 +0000 (12:55 +0000)
includes/OutputPage.php

index 1d82155..9b006de 100644 (file)
@@ -3098,7 +3098,7 @@ class OutputPage {
         * @return String: modified value of the "media" attribute
         */
        public static function transformCssMedia( $media ) {
-               global $wgHandheldForIPhone;
+               global $wgRequest, $wgHandheldForIPhone;
 
                // Switch in on-screen display for media testing
                $switches = array(
@@ -3106,7 +3106,7 @@ class OutputPage {
                        'handheld' => 'handheld',
                );
                foreach( $switches as $switch => $targetMedia ) {
-                       if( $this->getRequest()->getBool( $switch ) ) {
+                       if( $wgRequest->getBool( $switch ) ) {
                                if( $media == $targetMedia ) {
                                        $media = '';
                                } elseif( $media == 'screen' ) {