From: Aaron Schulz Date: Mon, 18 Aug 2008 05:58:54 +0000 (+0000) Subject: fix broken profiling X-Git-Tag: 1.31.0-rc.0~45843 X-Git-Url: https://git.cyclocoop.org/admin/?a=commitdiff_plain;h=79ef147973557419a1522aa9954c055ef722fcf0;p=lhc%2Fweb%2Fwiklou.git fix broken profiling --- 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" );