From: Bartosz DziewoƄski Date: Fri, 4 Aug 2017 13:18:52 +0000 (+0200) Subject: ResourceLoaderMediaWikiUtilModule (mediawiki.util): Fix loading in debug mode X-Git-Tag: 1.31.0-rc.0~2475^2 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/comptes/journal.php?a=commitdiff_plain;h=36d6c12f765651057096f6153379d18d3590fe9e;p=lhc%2Fweb%2Fwiklou.git ResourceLoaderMediaWikiUtilModule (mediawiki.util): Fix loading in debug mode Since this subclasses ResourceLoaderFileModule, in debug mode it was loaded by embedding the .js files directly, which caused the 'wgFragmentMode' config variable to not be set (since the code to do it was not sent to the client). Disallow this. Bug: T172512 Change-Id: I1af944e4f4946023519e3453295b04a6cbca9fa3 --- diff --git a/includes/resourceloader/ResourceLoaderMediaWikiUtilModule.php b/includes/resourceloader/ResourceLoaderMediaWikiUtilModule.php index 1fe3434466..166f1babf1 100644 --- a/includes/resourceloader/ResourceLoaderMediaWikiUtilModule.php +++ b/includes/resourceloader/ResourceLoaderMediaWikiUtilModule.php @@ -37,6 +37,13 @@ class ResourceLoaderMediaWikiUtilModule extends ResourceLoaderFileModule { . parent::getScript( $context ); } + /** + * @inheritdoc + */ + public function supportsURLLoading() { + return false; + } + /** * @inheritdoc */