Quick comments for r79036
authorAaron Schulz <aaron@users.mediawiki.org>
Tue, 19 Apr 2011 23:18:13 +0000 (23:18 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Tue, 19 Apr 2011 23:18:13 +0000 (23:18 +0000)
includes/SpecialPage.php

index d42c9a0..f375fc0 100644 (file)
@@ -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 );