Fix profiling in Article::getParserOutput()
authorChad Horohoe <demon@users.mediawiki.org>
Thu, 4 Aug 2011 23:00:02 +0000 (23:00 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Thu, 4 Aug 2011 23:00:02 +0000 (23:00 +0000)
includes/Article.php

index a3b8b90..a120355 100644 (file)
@@ -1893,8 +1893,9 @@ class Article extends Page {
                        $text = $rev->getText();
                }
 
+               $output = $this->getOutputFromWikitext( $text, $useParserCache );
                wfProfileOut( __METHOD__ );
-               return $this->getOutputFromWikitext( $text, $useParserCache );
+               return $output;
        }
 
        /**