r86443 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r86442‎ | r86443 | r86444 >
Date:23:18, 19 April 2011
Author:aaron
Status:ok
Tags:
Comment:
Quick comments for r79036
Modified paths:
  • /trunk/phase3/includes/SpecialPage.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/SpecialPage.php
@@ -704,11 +704,13 @@
705705 public function execute( $par ){
706706 $redirect = $this->getRedirect( $par );
707707 $query = $this->getRedirectQuery();
 708+ // Redirect to a page title with possible query parameters
708709 if ( $redirect instanceof Title ) {
709710 $url = $redirect->getFullUrl( $query );
710711 $this->getContext()->output->redirect( $url );
711712 wfProfileOut( __METHOD__ );
712713 return $redirect;
 714+ // Redirect to index.php with query parameters
713715 } elseif ( $redirect === true ) {
714716 global $wgScript;
715717 $url = $wgScript . '?' . wfArrayToCGI( $query );

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r79036(bug 268) add Special:PermanentLink/### as an internally-linkable redirect to...happy-melon00:03, 27 December 2010

Status & tagging log