Centralise url handling for urls to static resources
authorTimo Tijhof <krinklemail@gmail.com>
Fri, 22 Jan 2016 22:58:03 +0000 (22:58 +0000)
committerOri.livneh <ori@wikimedia.org>
Tue, 2 Feb 2016 23:26:16 +0000 (23:26 +0000)
commit419db58c8b224db5096a1564a09177a0d0509662
tree0d2f14a05f4e59fb88150ba80c26385220985cf4
parente310a0b017020c8b88b3ef25a928af6ea89222dd
Centralise url handling for urls to static resources

Keep in CSSMin as-is for back-compat and to ensure library remains
independent of MediaWiki.

Moved down a few lines as there is no need to compute the md5 hash when we're
returning a data URI. Previously md5_file was called twice during module builds
(once for the fallback url, and another time when producing the embedded data uri).

Applied to logo in SkinModule as example. To be applied elsewhere as needed.
Without it, fallback is current behaviour (no cache invalidation).

Bug: T99096
Change-Id: I7f38bfc1bea5c241bc4f8ec4f4b640fd65f2c04f
includes/OutputPage.php
includes/libs/CSSMin.php
includes/resourceloader/ResourceLoaderSkinModule.php