X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fdebug%2FMWDebug.php;h=8c019d87bb62c988bcaf8c24deaa61048a044161;hb=fc7d715b4b5adedd0ae3e9e6f969c89e19d460eb;hp=58387edb5ea545f31b756a74d014af962977e113;hpb=85e6a8f89d013b30e14907cd7750fadc45300840;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/debug/MWDebug.php b/includes/debug/MWDebug.php index 58387edb5e..8c019d87bb 100644 --- a/includes/debug/MWDebug.php +++ b/includes/debug/MWDebug.php @@ -20,6 +20,8 @@ * @file */ +use MediaWiki\Logger\LegacyLogger; + /** * New debugger system that outputs a toolbar on page view. * @@ -93,7 +95,7 @@ class MWDebug { */ public static function addModules( OutputPage $out ) { if ( self::$enabled ) { - $out->addModules( 'mediawiki.debug.init' ); + $out->addModules( 'mediawiki.debug' ); } } @@ -334,6 +336,7 @@ class MWDebug { if ( isset( $context['seconds_elapsed'] ) && isset( $context['memory_used'] ) ) { $prefix .= "{$context['seconds_elapsed']} {$context['memory_used']} "; } + $str = LegacyLogger::interpolate( $str, $context ); $str = $prefix . $str; } self::$debug[] = rtrim( UtfNormal\Validator::cleanUp( $str ) );