fixed profiling error
authorTim Starling <tstarling@users.mediawiki.org>
Sat, 23 Oct 2004 10:20:38 +0000 (10:20 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Sat, 23 Oct 2004 10:20:38 +0000 (10:20 +0000)
includes/Article.php

index c71338a..7e87d97 100644 (file)
@@ -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;
                        }
                }