resourceloader: Don't call wfExpandUrl() on load.php urls
authorTimo Tijhof <krinklemail@gmail.com>
Tue, 15 Sep 2015 20:21:04 +0000 (21:21 +0100)
committerTimo Tijhof <krinklemail@gmail.com>
Tue, 15 Sep 2015 20:21:04 +0000 (21:21 +0100)
commitb5e69c4ef621868787db4e6e1c648b594c3b71b4
treecaee5ff28893be1772587eda37de40474b5a8caf
parent47dda77573f27d4126690dfc00df5c10224d1488
resourceloader: Don't call wfExpandUrl() on load.php urls

wfExpandUrl() should only be used if the url needs to be absolute
and/or needs to point to the canonical, internal or default wgServer
for the wiki.

For meta-data or API responses this can make sense, but for resources
loaded by the browser from the current page, there is no added value
in expanding these to the default domain.

This is causing problems in custom setups such as at Wikimedia,
with "zero" and "m" sub domains for which $wgServer points to the
canonical domain.

Bug: T106966
Bug: T112646
Change-Id: Ie25d3a8f69564319a1b29b5c5904f3d352924a31
includes/resourceloader/ResourceLoader.php