From c7f10c73d9f0e8bae0ea6192e525e03d087494ee Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Sun, 5 Oct 2008 09:35:47 +0000 Subject: [PATCH] (bug 15767) API: apfilterlanglinks returns duplicate results --- RELEASE-NOTES | 1 + includes/api/ApiQueryAllpages.php | 1 + 2 files changed, 2 insertions(+) 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) -- 2.20.1