From 65bc8e5ced257abd869876edd9a6a42bea99c9ae Mon Sep 17 00:00:00 2001 From: =?utf8?q?Niklas=20Laxstr=C3=B6m?= Date: Sat, 27 Oct 2012 17:34:39 +0000 Subject: [PATCH] Fix unmatched profiling calls Change-Id: Iccddc819712b4f3c00e826a21fa131ed1298bb35 --- includes/SpecialPage.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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; } } -- 2.20.1