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 @@
103
103
}
104
104
105
105
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;
107
113
}
108
114
109
115
function getSQL() {
Status & tagging log
15:30, 12 September 2011
Meno25
(
talk
|
contribs
)
changed the
status
of r39190
[
removed:
ok
added:
old]