[RL] pass 'media' property to <link> tags as well (in already did it for the <style...
authorKrinkle <krinkle@users.mediawiki.org>
Sat, 17 Sep 2011 02:32:36 +0000 (02:32 +0000)
committerKrinkle <krinkle@users.mediawiki.org>
Sat, 17 Sep 2011 02:32:36 +0000 (02:32 +0000)
*  (Follows-up r88053 c22683 CR)
* Whitespace fix in Resources.php

resources/Resources.php
resources/mediawiki/mediawiki.js

index b5ceed1..1d0a5a4 100644 (file)
@@ -47,8 +47,10 @@ return array(
                'localBasePath' => $GLOBALS['wgStyleDirectory'],
        ),
        'skins.modern' => array(
-               'styles' => array( 'modern/main.css' => array( 'media' => 'screen' ),
-                               'modern/print.css' => array( 'media' => 'print' ) ),
+               'styles' => array(
+                       'modern/main.css' => array( 'media' => 'screen' ),
+                       'modern/print.css' => array( 'media' => 'print' ),
+               ),
                'remoteBasePath' => $GLOBALS['wgStylePath'],
                'localBasePath' => $GLOBALS['wgStyleDirectory'],
        ),
index f03b2ce..7da2821 100644 (file)
@@ -521,6 +521,7 @@ window.mw = window.mediaWiki = new ( function( $ ) {
                                                for ( var i = 0; i < style.length; i++ ) {
                                                        getMarker().before( mw.html.element( 'link', {
                                                                'type': 'text/css',
+                                                               'media': media,
                                                                'rel': 'stylesheet',
                                                                'href': style[i]
                                                        } ) );