From: Tim Starling Date: Sat, 23 Oct 2004 10:20:38 +0000 (+0000) Subject: fixed profiling error X-Git-Tag: 1.5.0alpha1~1489 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/password.php?a=commitdiff_plain;h=25b60fa1a00cc6de1a489d5d5d677860b31fe32b;p=lhc%2Fweb%2Fwiklou.git fixed profiling error --- 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; } }