* (bug 22474) {{urlencode:}} now takes an optional second paramter for type of
escaping.
* Special:Listfiles now supports a username parameter
+* Special:Random carries over query string parameters
=== Bug fixes in 1.17 ===
* (bug 17560) Half-broken deletion moved image files to deletion archive
}
public function execute( $par ) {
- global $wgOut, $wgContLang;
+ global $wgOut, $wgContLang, $wgRequest;
if ($par) {
$this->setNamespace( $wgContLang->getNsIndex( $par ) );
return;
}
- $query = $this->isRedirect() ? 'redirect=no' : '';
+ $redirectParam = $this->isRedirect() ? array( 'redirect' => 'no' ) : array();
+ $query = array_merge( $wgRequest->getValues(), $redirectParam );
+ unset( $query['title'] );
$wgOut->redirect( $title->getFullUrl( $query ) );
}