From 8c83c75bd77bd92adf9389696fd3c43c12b4f8af Mon Sep 17 00:00:00 2001 From: Daniel Friesen Date: Sun, 3 Apr 2011 12:55:48 +0000 Subject: [PATCH] Followup r85250; Revert a static method back to use of $wgRequest... :/ damnit resourceloader... --- includes/OutputPage.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/OutputPage.php b/includes/OutputPage.php index 1d821552ff..9b006de5c8 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -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' ) { -- 2.20.1