r48039 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r48038‎ | r48039 | r48040 >
Date:01:57, 5 March 2009
Author:werdna
Status:ok
Tags:
Comment:
When redlink=1 is specified, and the page exists, redirect to the "view" page.
Modified paths:
  • /trunk/phase3/includes/EditPage.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/EditPage.php
@@ -403,6 +403,11 @@
404404 }
405405 }
406406 }
 407+
 408+ // If they used redlink=1 and the page exists, redirect to the main article
 409+ if ( $wgRequest->getBool( 'redlink' ) && $this->mTitle->exists() ) {
 410+ $wgOut->redirect( $this->mTitle->getFullURL() );
 411+ }
407412
408413 wfProfileIn( __METHOD__."-business-end" );
409414

Status & tagging log