From: Daniel Friesen Date: Sun, 3 Apr 2011 12:55:48 +0000 (+0000) Subject: Followup r85250; Revert a static method back to use of $wgRequest... :/ damnit resour... X-Git-Tag: 1.31.0-rc.0~31053 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/operations/?a=commitdiff_plain;h=8c83c75bd77bd92adf9389696fd3c43c12b4f8af;p=lhc%2Fweb%2Fwiklou.git Followup r85250; Revert a static method back to use of $wgRequest... :/ damnit resourceloader... --- 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' ) {