From: Bryan Tong Minh Date: Thu, 20 Mar 2008 18:23:55 +0000 (+0000) Subject: Missing pages in prop=langlinks and prop=extlinks are now handled properly. (bug... X-Git-Tag: 1.31.0-rc.0~48925 X-Git-Url: http://git.cyclocoop.org/%22.%24h.%22?a=commitdiff_plain;h=1e57159918a118cf9fbe4545293df28e10df4ab0;p=lhc%2Fweb%2Fwiklou.git Missing pages in prop=langlinks and prop=extlinks are now handled properly. (bug 13442) --- 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',