SkinTemplate: Move debug HTML above bottomscripts
authorBartosz Dziewoński <matma.rex@gmail.com>
Thu, 24 Oct 2013 20:17:59 +0000 (22:17 +0200)
committerBartosz Dziewoński <matma.rex@gmail.com>
Thu, 24 Oct 2013 20:17:59 +0000 (22:17 +0200)
mediawiki.debug module, which is loaded at the bottom if
$wgDebugToolbar == true, depends on debug HTML (which sets some
mw.config stuffs with an inline script) being already present.

Bug: 56120
Change-Id: I5570fb4421e8e182fcf5e02754bf9ba6450be346

includes/SkinTemplate.php

index e5b8872..1e7ce13 100644 (file)
@@ -1998,9 +1998,10 @@ abstract class BaseTemplate extends QuickTemplate {
         * body and html tags.
         */
        function printTrail() { ?>
+<?php echo MWDebug::getDebugHTML( $this->getSkin()->getContext() ); ?>
 <?php $this->html( 'bottomscripts' ); /* JS call to runBodyOnloadHook */ ?>
 <?php $this->html( 'reporttime' ) ?>
-<?php echo MWDebug::getDebugHTML( $this->getSkin()->getContext() );
+<?php
        }
 
 }