X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22auteur_infos%22%2C%22id_auteur=%24connect_id_auteur%22%29%20.%20%22?a=blobdiff_plain;f=includes%2FOutputPage.php;h=d29ec54d4b8ca2e6b837054cf669def31cbe5c55;hb=2320f5cfe2e2c10fcd0d1b59c2fc1edaa101752a;hp=4f99f34a3d4cd70023a74bc4568a43d01ec701f3;hpb=a3e6a32d014a4dbdab58c4e50d98bec93b671932;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/OutputPage.php b/includes/OutputPage.php index 4f99f34a3d..d29ec54d4b 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -3856,18 +3856,19 @@ class OutputPage extends ContextSource { if ( $media == $targetMedia ) { $media = ''; } elseif ( preg_match( $screenMediaQueryRegex, $media ) === 1 ) { - // This regex will not attempt to understand a comma-separated media_query_list - // - // Example supported values for $media: - // 'screen', 'only screen', 'screen and (min-width: 982px)' ), - // Example NOT supported value for $media: - // '3d-glasses, screen, print and resolution > 90dpi' - // - // If it's a print request, we never want any kind of screen stylesheets - // If it's a handheld request (currently the only other choice with a switch), - // we don't want simple 'screen' but we might want screen queries that - // have a max-width or something, so we'll pass all others on and let the - // client do the query. + /* This regex will not attempt to understand a comma-separated media_query_list + * + * Example supported values for $media: + * 'screen', 'only screen', 'screen and (min-width: 982px)' ), + * Example NOT supported value for $media: + * '3d-glasses, screen, print and resolution > 90dpi' + * + * If it's a print request, we never want any kind of screen stylesheets + * If it's a handheld request (currently the only other choice with a switch), + * we don't want simple 'screen' but we might want screen queries that + * have a max-width or something, so we'll pass all others on and let the + * client do the query. + */ if ( $targetMedia == 'print' || $media == 'screen' ) { return null; }