Move NewPP limit report HTML comments to JS variables
[lhc/web/wiklou.git] / includes / resourceloader / ResourceLoader.php
index ac780be..59f6462 100644 (file)
@@ -1394,7 +1394,7 @@ MESSAGE;
                return Xml::encodeJsCall(
                        'mw.config.set',
                        [ $configuration ],
-                       ResourceLoader::inDebugMode()
+                       true // readable
                );
        }
 
@@ -1477,7 +1477,7 @@ MESSAGE;
         * @param array $extraQuery
         * @return array
         */
-       public static function createLoaderQuery( ResourceLoaderContext $context, $extraQuery = [] ) {
+       protected static function createLoaderQuery( ResourceLoaderContext $context, $extraQuery = [] ) {
                return self::makeLoaderQuery(
                        $context->getModules(),
                        $context->getLanguage(),