Ensure logo preload transforms urls if needed
authorTimo Tijhof <krinklemail@gmail.com>
Wed, 12 Apr 2017 20:43:57 +0000 (13:43 -0700)
committerBartosz Dziewoński <matma.rex@gmail.com>
Wed, 12 Apr 2017 21:34:31 +0000 (21:34 +0000)
commit45d8cd2926bb07ed1784f7dd10aa8b99d0c31971
tree0388980de6700e8b96b31818b2495ceacfd2e7c7
parent464f0c72a5c97e741a7fd36998426f7efa5f9090
Ensure logo preload transforms urls if needed

Follows-up 5f55e9c9c2a24.

If the logo url is from within /w, then ResourceLoaderSkinModule
will (as it should) apply a file hash query to it.

The preloader didn't do that, so it specified the wrong url.

Refactored SkinModule to make this logic re-usable.

Bug: T100999
Change-Id: I1ba11f7c70d1a725ad72754fee4a3f33c2a4c1be
includes/OutputPage.php
includes/resourceloader/ResourceLoaderSkinModule.php
tests/phpunit/includes/OutputPageTest.php