(bug 15767) API: apfilterlanglinks returns duplicate results
authorRoan Kattouw <catrope@users.mediawiki.org>
Sun, 5 Oct 2008 09:35:47 +0000 (09:35 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Sun, 5 Oct 2008 09:35:47 +0000 (09:35 +0000)
RELEASE-NOTES
includes/api/ApiQueryAllpages.php

index c434afb..ec35c0e 100644 (file)
@@ -302,6 +302,7 @@ The following extensions are migrated into MediaWiki 1.14:
 * (bug 15785) Allow for different expiry times for different protections in
   action=protect
 * Added allowsduplicates attribute to action=paraminfo output
+* (bug 15767) apfilterlanglinks returns duplicate results
 
 === Languages updated in 1.14 ===
 
index b0f4759..3211a20 100644 (file)
@@ -106,6 +106,7 @@ class ApiQueryAllpages extends ApiQueryGeneratorBase {
                } else if($params['filterlanglinks'] == 'withlanglinks') {
                        $this->addTables('langlinks');
                        $this->addWhere('page_id=ll_from');
+                       $this->addOption('DISTINCT');
                        $forceNameTitleIndex = false;
                }
                if ($forceNameTitleIndex)