Merge "Changed "archived (revisions)" to "deleted (revisions)""
[lhc/web/wiklou.git] / includes / OutputPage.php
index 72d8a7c..26f9efa 100644 (file)
@@ -2909,7 +2909,8 @@ class OutputPage extends ContextSource {
 
                                // Automatically select style/script elements
                                if ( $only === ResourceLoaderModule::TYPE_STYLES ) {
-                                       $link = Html::linkedStyle( $url );
+                                       $media = $group === 'print' ? 'print' : 'all';
+                                       $link = Html::linkedStyle( $url, $media );
                                } else {
                                        if ( $context->getRaw() || $isRaw ) {
                                                // Startup module can't load itself, needs to use <script> instead of mw.loader.load