Index: trunk/phase3/includes/OutputPage.php |
— | — | @@ -3098,7 +3098,7 @@ |
3099 | 3099 | * @return String: modified value of the "media" attribute |
3100 | 3100 | */ |
3101 | 3101 | public static function transformCssMedia( $media ) { |
3102 | | - global $wgHandheldForIPhone; |
| 3102 | + global $wgRequest, $wgHandheldForIPhone; |
3103 | 3103 | |
3104 | 3104 | // Switch in on-screen display for media testing |
3105 | 3105 | $switches = array( |
— | — | @@ -3106,7 +3106,7 @@ |
3107 | 3107 | 'handheld' => 'handheld', |
3108 | 3108 | ); |
3109 | 3109 | foreach( $switches as $switch => $targetMedia ) { |
3110 | | - if( $this->getRequest()->getBool( $switch ) ) { |
| 3110 | + if( $wgRequest->getBool( $switch ) ) { |
3111 | 3111 | if( $media == $targetMedia ) { |
3112 | 3112 | $media = ''; |
3113 | 3113 | } elseif( $media == 'screen' ) { |