Fix media type handling for CSS that's not loaded with only=styles
authorCatrope <roan.kattouw@gmail.com>
Wed, 13 Jun 2012 23:50:13 +0000 (16:50 -0700)
committerCatrope <roan.kattouw@gmail.com>
Wed, 13 Jun 2012 23:50:13 +0000 (16:50 -0700)
commit15e5193a19fb55339e60d192142dfd7c2e546596
treec1b71a07049330ccc08d03a89bf63793e4272da6
parenteaadef232e2e4f080620cf74b8ca1603b8f4aff2
Fix media type handling for CSS that's not loaded with only=styles

We were only doing server-side @media wrapping in only=styles mode but
not in regular mode. Meanwhile, the client-side loader had dropped all
support for media types under the assumption that this was all handled
server side, which caused media type handling to break for modules
loaded the normal way. We didn't notice this before because the only
core module that uses this is skins.vector, which is loaded through
only=styles.

Change-Id: I8228cc0317328440256b45b166eef1b57dbf4602
includes/resourceloader/ResourceLoader.php