From: Aryeh Gregor Date: Fri, 20 Feb 2009 14:13:43 +0000 (+0000) Subject: Fix completely broken profiling change X-Git-Tag: 1.31.0-rc.0~42769 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22suivi_revisions%22%2C%22id_auteur=%24connecte%22%29%20.%20%22?a=commitdiff_plain;h=0982705a91df6892f0ac7f4cdcabba7e88b7c751;p=lhc%2Fweb%2Fwiklou.git Fix completely broken profiling change Thanks, Ialex. :) --- diff --git a/includes/Title.php b/includes/Title.php index 6e232aa10b..d9c19c0faa 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -869,19 +869,21 @@ class Title { public function getLinkUrl( $query = array(), $variant = false ) { wfProfileIn( __METHOD__ ); if( !is_array( $query ) ) { + wfProfileOut( __METHOD__ ); throw new MWException( 'Title::getLinkUrl passed a non-array for '. '$query' ); } if( $this->isExternal() ) { - return $this->getFullURL( $query ); + $ret = $this->getFullURL( $query ); } elseif( $this->getPrefixedText() === '' and $this->getFragment() !== '' ) { - return $this->getFragmentForURL(); + $ret = $this->getFragmentForURL(); } else { - return $this->getLocalURL( $query, $variant ) + $ret = $this->getLocalURL( $query, $variant ) . $this->getFragmentForURL(); } wfProfileOut( __METHOD__ ); + return $ret; } /**