From: Aaron Schulz Date: Tue, 19 Apr 2011 23:18:13 +0000 (+0000) Subject: Quick comments for r79036 X-Git-Tag: 1.31.0-rc.0~30695 X-Git-Url: http://git.cyclocoop.org/%28%28?a=commitdiff_plain;h=2d39a882e99efd6d833eb33f7187cb9102583cc2;p=lhc%2Fweb%2Fwiklou.git Quick comments for r79036 --- 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 );