From 79ef147973557419a1522aa9954c055ef722fcf0 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Mon, 18 Aug 2008 05:58:54 +0000 Subject: [PATCH] fix broken profiling --- includes/parser/Parser.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php index 20b22e161d..da0d68d785 100644 --- a/includes/parser/Parser.php +++ b/includes/parser/Parser.php @@ -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" ); -- 2.20.1