API: Let list=search throw away missing titles. Lucene will sometimes give us pages...
authorRoan Kattouw <catrope@users.mediawiki.org>
Sat, 16 Aug 2008 21:00:19 +0000 (21:00 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Sat, 16 Aug 2008 21:00:19 +0000 (21:00 +0000)
RELEASE-NOTES
includes/api/ApiQuerySearch.php

index 1709864..2248751 100644 (file)
@@ -148,6 +148,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * (bug 15048) Added limit field for multivalue parameters to action=paraminfo
   output.
 * When the limit on multivalue parameters is exceeded, a warning is issued
+* list=search doesn't list missing pages any more
 
 === Languages updated in 1.14 ===
 
index 932ca50..85d4ec8 100644 (file)
@@ -93,8 +93,9 @@ class ApiQuerySearch extends ApiQueryGeneratorBase {
                                break;
                        }
 
-                       // Silently skip broken titles
-                       if ($result->isBrokenTitle()) continue;
+                       // Silently skip broken and missing titles
+                       if ($result->isBrokenTitle() || $result->isMissingRevision())
+                               continue;
                        
                        $title = $result->getTitle();
                        if (is_null($resultPageSet)) {