From afcf38855f1663727912bb189e14caf1d3cf21c0 Mon Sep 17 00:00:00 2001 From: Reedy Date: Mon, 14 Oct 2013 23:15:31 +0100 Subject: [PATCH] If $wgShowHostnames is true, add parsed by to NewPP limit report Change-Id: I89d6588d77864598ddc5f23e7befc5d46e9035d2 --- includes/parser/Parser.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 ) -- 2.20.1