From: Niklas Laxström Date: Sat, 27 Oct 2012 17:34:39 +0000 (+0000) Subject: Fix unmatched profiling calls X-Git-Tag: 1.31.0-rc.0~21837 X-Git-Url: http://git.cyclocoop.org/data/Luca_Pacioli_%28Gemaelde%29.jpeg?a=commitdiff_plain;h=65bc8e5ced257abd869876edd9a6a42bea99c9ae;p=lhc%2Fweb%2Fwiklou.git Fix unmatched profiling calls Change-Id: Iccddc819712b4f3c00e826a21fa131ed1298bb35 --- diff --git a/includes/SpecialPage.php b/includes/SpecialPage.php index 9442869774..816831fa3f 100644 --- a/includes/SpecialPage.php +++ b/includes/SpecialPage.php @@ -1017,14 +1017,12 @@ abstract class RedirectSpecialPage extends UnlistedSpecialPage { if ( $redirect instanceof Title ) { $url = $redirect->getFullUrl( $query ); $this->getOutput()->redirect( $url ); - wfProfileOut( __METHOD__ ); return $redirect; // Redirect to index.php with query parameters } elseif ( $redirect === true ) { global $wgScript; $url = $wgScript . '?' . wfArrayToCGI( $query ); $this->getOutput()->redirect( $url ); - wfProfileOut( __METHOD__ ); return $redirect; } else { $class = __CLASS__; @@ -1209,7 +1207,7 @@ abstract class RedirectSpecialArticle extends RedirectSpecialPage { 'ctype', 'maxage', 'smaxage', ); - wfRunHooks( "RedirectSpecialArticleRedirectParams", array(&$redirectParams) ); + wfRunHooks( "RedirectSpecialArticleRedirectParams", array( &$redirectParams ) ); $this->mAllowedRedirectParams = $redirectParams; } }