fix broken profiling
authorAaron Schulz <aaron@users.mediawiki.org>
Mon, 18 Aug 2008 05:58:54 +0000 (05:58 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Mon, 18 Aug 2008 05:58:54 +0000 (05:58 +0000)
includes/parser/Parser.php

index 20b22e1..da0d68d 100644 (file)
@@ -1522,8 +1522,8 @@ class Parser
                }
 
                if( is_null( $this->mTitle ) ) {
-                       wfProfileOut( __METHOD__ );
                        wfProfileOut( __METHOD__.'-setup' );
+                       wfProfileOut( __METHOD__ );
                        throw new MWException( __METHOD__.": \$this->mTitle is null\n" );
                }
                $nottalk = !$this->mTitle->isTalkPage();
@@ -1723,8 +1723,6 @@ class Parser
 
                                                # cloak any absolute URLs inside the image markup, so replaceExternalLinks() won't touch them
                                                $s .= $prefix . $this->armorLinks( $this->makeImage( $nt, $text, $holders ) ) . $trail;
-
-                                               wfProfileOut( __METHOD__."-image" );
                                        }
                                        $this->mOutput->addImage( $nt->getDBkey() );
                                        wfProfileOut( __METHOD__."-image" );