Only pretty-print the parser report JS vars
[lhc/web/wiklou.git] / includes / OutputPage.php
index c8a385a..d34ace8 100644 (file)
@@ -3082,7 +3082,12 @@ class OutputPage extends ContextSource {
         */
        function getBottomScripts() {
                return $this->getScriptsForBottomQueue() .
-                       Skin::makeVariablesScript( [ 'wgPageParseReport' => $this->limitReportData ] );
+                       ResourceLoader::makeInlineScript(
+                               ResourceLoader::makeConfigSetScript(
+                                       [ 'wgPageParseReport' => $this->limitReportData ],
+                                       true
+                               )
+                       );
        }
 
        /**