From: Roan Kattouw Date: Sun, 5 Oct 2008 09:35:47 +0000 (+0000) Subject: (bug 15767) API: apfilterlanglinks returns duplicate results X-Git-Tag: 1.31.0-rc.0~44911 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dcompta/comptes/journal.php?a=commitdiff_plain;h=c7f10c73d9f0e8bae0ea6192e525e03d087494ee;p=lhc%2Fweb%2Fwiklou.git (bug 15767) API: apfilterlanglinks returns duplicate results --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index c434afbfa1..ec35c0e3a0 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -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 === diff --git a/includes/api/ApiQueryAllpages.php b/includes/api/ApiQueryAllpages.php index b0f4759399..3211a20e11 100644 --- a/includes/api/ApiQueryAllpages.php +++ b/includes/api/ApiQueryAllpages.php @@ -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)