From 25b60fa1a00cc6de1a489d5d5d677860b31fe32b Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Sat, 23 Oct 2004 10:20:38 +0000 Subject: [PATCH] fixed profiling error --- includes/Article.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/includes/Article.php b/includes/Article.php index c71338a29e..7e87d97408 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -797,20 +797,22 @@ class Article { $wgOut->setPageTitle( $this->mTitle->getPrefixedText() ); $de = new DifferenceEngine( $oldid, $diff, $rcid ); $de->showDiffPage(); - wfProfileOut( $fname ); if( $diff == 0 ) { # Run view updates for current revision only $this->viewUpdates(); } + wfProfileOut( $fname ); return; } if ( empty( $oldid ) && $this->checkTouched() ) { if( $wgOut->checkLastModified( $this->mTouched ) ){ + wfProfileOut( $fname ); return; } else if ( $this->tryFileCache() ) { # tell wgOut that output is taken care of $wgOut->disable(); $this->viewUpdates(); + wfProfileOut( $fname ); return; } } -- 2.20.1