From 2d39a882e99efd6d833eb33f7187cb9102583cc2 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Tue, 19 Apr 2011 23:18:13 +0000 Subject: [PATCH] Quick comments for r79036 --- includes/SpecialPage.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/includes/SpecialPage.php b/includes/SpecialPage.php index d42c9a0880..f375fc02d6 100644 --- a/includes/SpecialPage.php +++ b/includes/SpecialPage.php @@ -704,11 +704,13 @@ abstract class RedirectSpecialPage extends UnlistedSpecialPage { public function execute( $par ){ $redirect = $this->getRedirect( $par ); $query = $this->getRedirectQuery(); + // Redirect to a page title with possible query parameters if ( $redirect instanceof Title ) { $url = $redirect->getFullUrl( $query ); $this->getContext()->output->redirect( $url ); wfProfileOut( __METHOD__ ); return $redirect; + // Redirect to index.php with query parameters } elseif ( $redirect === true ) { global $wgScript; $url = $wgScript . '?' . wfArrayToCGI( $query ); -- 2.20.1