From 8e2b8417e892fff98fefba1961c35822da61bbd4 Mon Sep 17 00:00:00 2001 From: Bryan Tong Minh Date: Sat, 19 Apr 2008 17:24:38 +0000 Subject: [PATCH] (bug 13792) Broken titles are now silently skipped in API search results. --- RELEASE-NOTES | 1 + includes/api/ApiQuerySearch.php | 3 +++ 2 files changed, 4 insertions(+) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index cdb80f5599..44e43c1c37 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -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 === diff --git a/includes/api/ApiQuerySearch.php b/includes/api/ApiQuerySearch.php index 40b44f9d0f..c0807c25d9 100644 --- a/includes/api/ApiQuerySearch.php +++ b/includes/api/ApiQuerySearch.php @@ -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( -- 2.20.1