Index: trunk/phase3/includes/SpecialPage.php |
— | — | @@ -704,11 +704,13 @@ |
705 | 705 | public function execute( $par ){ |
706 | 706 | $redirect = $this->getRedirect( $par ); |
707 | 707 | $query = $this->getRedirectQuery(); |
| 708 | + // Redirect to a page title with possible query parameters |
708 | 709 | if ( $redirect instanceof Title ) { |
709 | 710 | $url = $redirect->getFullUrl( $query ); |
710 | 711 | $this->getContext()->output->redirect( $url ); |
711 | 712 | wfProfileOut( __METHOD__ ); |
712 | 713 | return $redirect; |
| 714 | + // Redirect to index.php with query parameters |
713 | 715 | } elseif ( $redirect === true ) { |
714 | 716 | global $wgScript; |
715 | 717 | $url = $wgScript . '?' . wfArrayToCGI( $query ); |