(bug 13792) Broken titles are now silently skipped in API search results.
authorBryan Tong Minh <btongminh@users.mediawiki.org>
Sat, 19 Apr 2008 17:24:38 +0000 (17:24 +0000)
committerBryan Tong Minh <btongminh@users.mediawiki.org>
Sat, 19 Apr 2008 17:24:38 +0000 (17:24 +0000)
RELEASE-NOTES
includes/api/ApiQuerySearch.php

index cdb80f5..44e43c1 100644 (file)
@@ -254,6 +254,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * (bug 13544) Added oldid parameter to action=parse to allow for parsing of old revisions
 * (bug 13718) Return the proper continue parameter for cmsort=timestamp
 * action=login now returns the correct waiting time in the details property
+* (bug 13792) Broken titles are now silently skipped in search results.
 
 === Languages updated in 1.13 ===
 
index 40b44f9..c0807c2 100644 (file)
@@ -78,6 +78,9 @@ class ApiQuerySearch extends ApiQueryGeneratorBase {
                                break;
                        }
 
+                       // Silently skip broken titles
+                       if ($result->isBrokenTitle()) continue;
+                       
                        $title = $result->getTitle();
                        if (is_null($resultPageSet)) {
                                $data[] = array(