resourceloader: Use makeVersionQuery for 'version' query parameter
authorTimo Tijhof <krinklemail@gmail.com>
Wed, 7 Sep 2016 21:39:22 +0000 (14:39 -0700)
committerTimo Tijhof <krinklemail@gmail.com>
Wed, 7 Sep 2016 21:44:00 +0000 (14:44 -0700)
commitcf99077b0b21613dbcdff4a0602684c96cd7f356
tree4b218fc1bc08e97bc32ac44de5d2b4e65aa13309
parenteb6536bd0cbb97ef42c9b1385dd7bc23a021d93a
resourceloader: Use makeVersionQuery for 'version' query parameter

makeVersionQuery and getCombinedVersion return the same string in
most cases, but there are exceptions, and it could diverge further
in the future. Use the semantically correct method.

Before 6fa1e56 it didn't matter how 'version' was computed as long
as it's deterministic and sufficiently unique. Now that we validate
the hashes it's important all methods use the same logic.

Rename method to makeVersionQuery since it's no longer used just
for comparison against the expected value.

Change-Id: I19f5818e27c8a0920d3d1374b40aeb0b6ba0b614
includes/resourceloader/ResourceLoader.php
includes/resourceloader/ResourceLoaderClientHtml.php
includes/resourceloader/ResourceLoaderStartUpModule.php