Missing pages in prop=langlinks and prop=extlinks are now handled properly. (bug...
authorBryan Tong Minh <btongminh@users.mediawiki.org>
Thu, 20 Mar 2008 18:23:55 +0000 (18:23 +0000)
committerBryan Tong Minh <btongminh@users.mediawiki.org>
Thu, 20 Mar 2008 18:23:55 +0000 (18:23 +0000)
RELEASE-NOTES
includes/api/ApiQueryExternalLinks.php
includes/api/ApiQueryLangLinks.php

index 66ca955..1db811a 100644 (file)
@@ -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 ===
 
index 1b88937..f53f206 100644 (file)
@@ -40,6 +40,8 @@ class ApiQueryExternalLinks extends ApiQueryBase {
        }
 
        public function execute() {
+               if ( $this->getPageSet()->getGoodTitleCount() == 0 )
+                       return;
 
                $this->addFields(array (
                        'el_from',
index 777cbe0..d274d61 100644 (file)
@@ -40,6 +40,9 @@ class ApiQueryLangLinks extends ApiQueryBase {
        }
 
        public function execute() {
+               if ( $this->getPageSet()->getGoodTitleCount() == 0 )
+                       return;
+       
                $this->addFields(array (
                        'll_from',
                        'll_lang',