ResourceLoaderMediaWikiUtilModule (mediawiki.util): Fix loading in debug mode
authorBartosz Dziewoński <matma.rex@gmail.com>
Fri, 4 Aug 2017 13:18:52 +0000 (15:18 +0200)
committerBartosz Dziewoński <matma.rex@gmail.com>
Fri, 4 Aug 2017 13:18:52 +0000 (15:18 +0200)
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

includes/resourceloader/ResourceLoaderMediaWikiUtilModule.php

index 1fe3434..166f1ba 100644 (file)
@@ -37,6 +37,13 @@ class ResourceLoaderMediaWikiUtilModule extends ResourceLoaderFileModule {
                        . parent::getScript( $context );
        }
 
+       /**
+        * @inheritdoc
+        */
+       public function supportsURLLoading() {
+               return false;
+       }
+
        /**
         * @inheritdoc
         */