r93681 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r93680‎ | r93681 | r93682 >
Date:23:26, 1 August 2011
Author:reedy
Status:ok
Tags:
Comment:
Commit live hack
Modified paths:
  • /branches/wmf/1.17wmf1/includes/Article.php (modified) (history)

Diff [purge]

Index: branches/wmf/1.17wmf1/includes/Article.php
@@ -4566,6 +4566,7 @@
45674567 public function getParserOutput( $oldid = null ) {
45684568 global $wgEnableParserCache, $wgUser;
45694569
 4570+ wfProfileIn( __METHOD__ );
45704571 // Should the parser cache be used?
45714572 $useParserCache = $wgEnableParserCache &&
45724573 $wgUser->getStubThreshold() == 0 &&
@@ -4587,10 +4588,11 @@
45884589 // Cache miss; parse and output it.
45894590 $rev = Revision::newFromTitle( $this->getTitle(), $oldid );
45904591
4591 - return $this->getOutputFromWikitext( $rev->getText(), $useParserCache );
4592 - } else {
4593 - return $parserOutput;
 4592+ $parserOutput = $this->getOutputFromWikitext( $rev->getText(), $useParserCache );
45944593 }
 4594+
 4595+ wfProfileOut( __METHOD__ );
 4596+ return $parserOutput;
45954597 }
45964598
45974599 // Deprecated methods

Follow-up revisions

RevisionCommit summaryAuthorDate
r93683Add Profiling to trunk from r93681reedy23:28, 1 August 2011

Status & tagging log