dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ffceb8f
)
Killing filesort in prop={links,templatelinks} when {pl,tl}namespace isn't set.
author
Roan Kattouw
<catrope@users.mediawiki.org>
Mon, 7 Jul 2008 13:08:03 +0000
(13:08 +0000)
committer
Roan Kattouw
<catrope@users.mediawiki.org>
Mon, 7 Jul 2008 13:08:03 +0000
(13:08 +0000)
includes/api/ApiQueryLinks.php
patch
|
blob
|
history
diff --git
a/includes/api/ApiQueryLinks.php
b/includes/api/ApiQueryLinks.php
index
6980541
..
73a2ad8
100644
(file)
--- a/
includes/api/ApiQueryLinks.php
+++ b/
includes/api/ApiQueryLinks.php
@@
-93,7
+93,8
@@
class ApiQueryLinks extends ApiQueryGeneratorBase {
$order = array();
if(count($this->getPageSet()->getGoodTitles()) != 1)
$order[] = "{$this->prefix}_from";
- // pl_namespace is always constant
+ if(!isset($params['namespace']))
+ $order[] = "{$this->prefix}_namespace";
$order[] = "{$this->prefix}_title";
$this->addOption('ORDER BY', implode(", ", $order));
$this->addOption('USE INDEX', "{$this->prefix}_from");