"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "includes/debug/MWDebug.php" between
mediawiki-1.31.1.tar.gz and mediawiki-1.32.0.tar.gz

About: MediaWiki is a wiki engine (the collaborative editing software that runs for e.g. Wikipedia, the free encyclopedia).

MWDebug.php  (mediawiki-1.31.1):MWDebug.php  (mediawiki-1.32.0)
skipping to change at line 434 skipping to change at line 434
$html = ''; $html = '';
if ( self::$enabled ) { if ( self::$enabled ) {
self::log( 'MWDebug output complete' ); self::log( 'MWDebug output complete' );
$debugInfo = self::getDebugInfo( $context ); $debugInfo = self::getDebugInfo( $context );
// Cannot use OutputPage::addJsConfigVars because those a re already outputted // Cannot use OutputPage::addJsConfigVars because those a re already outputted
// by the time this method is called. // by the time this method is called.
$html = ResourceLoader::makeInlineScript( $html = ResourceLoader::makeInlineScript(
ResourceLoader::makeConfigSetScript( [ 'debugInfo ResourceLoader::makeConfigSetScript( [ 'debugInfo
' => $debugInfo ] ) ' => $debugInfo ] ),
$context->getOutput()->getCSPNonce()
); );
} }
if ( $wgDebugComments ) { if ( $wgDebugComments ) {
$html .= "<!-- Debug output:\n" . $html .= "<!-- Debug output:\n" .
htmlspecialchars( implode( "\n", self::$debug ), ENT_NOQUOTES ) . htmlspecialchars( implode( "\n", self::$debug ), ENT_NOQUOTES ) .
"\n\n-->"; "\n\n-->";
} }
return $html; return $html;
 End of changes. 1 change blocks. 
2 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)