r39190 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r39189‎ | r39190 | r39191 >
Date:23:09, 11 August 2008
Author:brion
Status:old
Tags:
Comment:
* (bug 13818) Non-functional and obscure namespace parameter in Linksearch

Don't stick 'namespace=' on paging links when user didn't submit a namespace parameter.
Modified paths:
  • /trunk/extensions/LinkSearch/LinkSearch_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/LinkSearch/LinkSearch_body.php
@@ -102,7 +102,13 @@
103103 }
104104
105105 function linkParameters() {
106 - return array( 'target' => $this->mProt . $this->mQuery, 'namespace' => $this->mNs );
 106+ global $wgMiserMode;
 107+ $params = array();
 108+ $params['target'] = $this->mProt . $this->mQuery;
 109+ if( isset( $this->mNs ) && !$wgMiserMode ) {
 110+ $params['namespace'] = $this->mNs;
 111+ }
 112+ return $params;
107113 }
108114
109115 function getSQL() {

Status & tagging log