From: Bryan Tong Minh Date: Sat, 19 Apr 2008 17:24:38 +0000 (+0000) Subject: (bug 13792) Broken titles are now silently skipped in API search results. X-Git-Tag: 1.31.0-rc.0~48181 X-Git-Url: http://git.cyclocoop.org/%22.%28%24lien.?a=commitdiff_plain;h=8e2b8417e892fff98fefba1961c35822da61bbd4;p=lhc%2Fweb%2Fwiklou.git (bug 13792) Broken titles are now silently skipped in API search results. --- 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(