r65056 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r65055‎ | r65056 | r65057 >
Date:11:55, 15 April 2010
Author:catrope
Status:ok
Tags:
Comment:
1.16wmf4: MFT r65054
Modified paths:
  • /branches/wmf/1.16wmf4/includes/specials/SpecialRandompage.php (modified) (history)

Diff [purge]

Index: branches/wmf/1.16wmf4/includes/specials/SpecialRandompage.php
@@ -33,7 +33,7 @@
3434 }
3535
3636 public function execute( $par ) {
37 - global $wgOut, $wgContLang;
 37+ global $wgOut, $wgContLang, $wgRequest;
3838
3939 if ($par) {
4040 $this->setNamespace( $wgContLang->getNsIndex( $par ) );
@@ -48,7 +48,9 @@
4949 return;
5050 }
5151
52 - $query = $this->isRedirect() ? 'redirect=no' : '';
 52+ $redirectParam = $this->isRedirect() ? array( 'redirect' => 'no' ) : array();
 53+ $query = array_merge( $wgRequest->getValues(), $redirectParam );
 54+ unset( $query['title'] );
5355 $wgOut->redirect( $title->getFullUrl( $query ) );
5456 }
5557

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r65054Special:Random now carries over query string parameterscatrope11:54, 15 April 2010

Status & tagging log