Fix unmatched profiling calls
authorNiklas Laxström <niklas.laxstrom@gmail.com>
Sat, 27 Oct 2012 17:34:39 +0000 (17:34 +0000)
committerNiklas Laxström <niklas.laxstrom@gmail.com>
Sat, 27 Oct 2012 17:34:39 +0000 (17:34 +0000)
Change-Id: Iccddc819712b4f3c00e826a21fa131ed1298bb35

includes/SpecialPage.php

index 9442869..816831f 100644 (file)
@@ -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;
        }
 }