resourceloader: Include 'raw' in ResourceLoaderContext hash
authorTimo Tijhof <krinklemail@gmail.com>
Tue, 17 Nov 2015 21:15:24 +0000 (21:15 +0000)
committerTimo Tijhof <krinklemail@gmail.com>
Tue, 17 Nov 2015 21:48:03 +0000 (21:48 +0000)
commit8c00d37f47e75006cdd961c9e962a8c3a346382c
tree0df909f515441ae937aa9e8886c344ef4216a36c
parent764122c00039352ce7bdea322fa13a160645f868
resourceloader: Include 'raw' in ResourceLoaderContext hash

This parameter was introduced last year as a way to extract
bare scripts from modules without any 'mw.loader.state()' suffix.

When ResourceFileCache is used ($wgUseFileCache) this causes
cache pollution as it didn't include getRaw() in the hash.

Change-Id: I7b9f9b6a5756777462395b911abafb62468cbefa
includes/resourceloader/ResourceLoaderContext.php
tests/phpunit/includes/resourceloader/DerivativeResourceLoaderContextTest.php