Index: branches/wmf/1.17wmf1/includes/Article.php |
— | — | @@ -4566,6 +4566,7 @@ |
4567 | 4567 | public function getParserOutput( $oldid = null ) { |
4568 | 4568 | global $wgEnableParserCache, $wgUser; |
4569 | 4569 | |
| 4570 | + wfProfileIn( __METHOD__ ); |
4570 | 4571 | // Should the parser cache be used? |
4571 | 4572 | $useParserCache = $wgEnableParserCache && |
4572 | 4573 | $wgUser->getStubThreshold() == 0 && |
— | — | @@ -4587,10 +4588,11 @@ |
4588 | 4589 | // Cache miss; parse and output it. |
4589 | 4590 | $rev = Revision::newFromTitle( $this->getTitle(), $oldid ); |
4590 | 4591 | |
4591 | | - return $this->getOutputFromWikitext( $rev->getText(), $useParserCache ); |
4592 | | - } else { |
4593 | | - return $parserOutput; |
| 4592 | + $parserOutput = $this->getOutputFromWikitext( $rev->getText(), $useParserCache ); |
4594 | 4593 | } |
| 4594 | + |
| 4595 | + wfProfileOut( __METHOD__ ); |
| 4596 | + return $parserOutput; |
4595 | 4597 | } |
4596 | 4598 | |
4597 | 4599 | // Deprecated methods |