From 1e57159918a118cf9fbe4545293df28e10df4ab0 Mon Sep 17 00:00:00 2001 From: Bryan Tong Minh Date: Thu, 20 Mar 2008 18:23:55 +0000 Subject: [PATCH] Missing pages in prop=langlinks and prop=extlinks are now handled properly. (bug 13442) --- RELEASE-NOTES | 2 ++ includes/api/ApiQueryExternalLinks.php | 2 ++ includes/api/ApiQueryLangLinks.php | 3 +++ 3 files changed, 7 insertions(+) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 66ca955fc4..1db811a2f4 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -138,6 +138,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 13419) Fix gblredirect so it actually works * (bug 13418) Disable eiredirect because it's useless * (bug 13395) list=allcategories should use category table +* (bug 13442) Missing pages in prop=langlinks and prop=extlinks are now + handled properly. === Languages updated in 1.13 === diff --git a/includes/api/ApiQueryExternalLinks.php b/includes/api/ApiQueryExternalLinks.php index 1b88937dd4..f53f2063d9 100644 --- a/includes/api/ApiQueryExternalLinks.php +++ b/includes/api/ApiQueryExternalLinks.php @@ -40,6 +40,8 @@ class ApiQueryExternalLinks extends ApiQueryBase { } public function execute() { + if ( $this->getPageSet()->getGoodTitleCount() == 0 ) + return; $this->addFields(array ( 'el_from', diff --git a/includes/api/ApiQueryLangLinks.php b/includes/api/ApiQueryLangLinks.php index 777cbe00f0..d274d614e0 100644 --- a/includes/api/ApiQueryLangLinks.php +++ b/includes/api/ApiQueryLangLinks.php @@ -40,6 +40,9 @@ class ApiQueryLangLinks extends ApiQueryBase { } public function execute() { + if ( $this->getPageSet()->getGoodTitleCount() == 0 ) + return; + $this->addFields(array ( 'll_from', 'll_lang', -- 2.20.1