From: Reedy Date: Mon, 14 Oct 2013 22:15:31 +0000 (+0100) Subject: If $wgShowHostnames is true, add parsed by to NewPP limit report X-Git-Tag: 1.31.0-rc.0~18485^2 X-Git-Url: http://git.cyclocoop.org///%22%40url%40//%22?a=commitdiff_plain;h=afcf38855f1663727912bb189e14caf1d3cf21c0;p=lhc%2Fweb%2Fwiklou.git If $wgShowHostnames is true, add parsed by to NewPP limit report Change-Id: I89d6588d77864598ddc5f23e7befc5d46e9035d2 --- diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php index 0603a9bc77..221a630f91 100644 --- a/includes/parser/Parser.php +++ b/includes/parser/Parser.php @@ -355,7 +355,7 @@ class Parser { * to internalParse() which does all the real work. */ - global $wgUseTidy, $wgAlwaysUseTidy; + global $wgUseTidy, $wgAlwaysUseTidy, $wgShowHostnames; $fname = __METHOD__ . '-' . wfGetCaller(); wfProfileIn( __METHOD__ ); wfProfileIn( $fname ); @@ -532,6 +532,9 @@ class Parser { wfRunHooks( 'ParserLimitReportPrepare', array( $this, $this->mOutput ) ); $limitReport = "NewPP limit report\n"; + if ( $wgShowHostnames ) { + $limitReport .= 'Parsed by ' . wfHostname() . "\n"; + } foreach ( $this->mOutput->getLimitReportData() as $key => $value ) { if ( wfRunHooks( 'ParserLimitReportFormat', array( $key, $value, &$limitReport, false, false )