r32349 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r32348‎ | r32349 | r32350 >
Date:13:16, 23 March 2008
Author:btongminh
Status:old
Tags:
Comment:
(bug 13482) Disabled search types handled properly
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/includes/api/ApiQuerySearch.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiQuerySearch.php
@@ -65,6 +65,9 @@
6666 $matches = $search->searchText( $query );
6767 else
6868 $matches = $search->searchTitle( $query );
 69+ if (is_null($matches))
 70+ $this->dieUsage("{$params['what']} search is disabled",
 71+ "search-{$params['what']}-disabled");
6972
7073 $data = array ();
7174 $count = 0;
Index: trunk/phase3/RELEASE-NOTES
@@ -150,6 +150,7 @@
151151 * (bug 13442) Missing pages in prop=langlinks and prop=extlinks are now
152152 handled properly.
153153 * (bug 13444) Add description to list=watchlist
 154+* (bug 13482) Disabled search types handled properly
154155
155156 === Languages updated in 1.13 ===
156157

Follow-up revisions

RevisionCommit summaryAuthorDate
r34658Backport API bugfixes from trunk to REL1_12 that caused PHP to spit out fatal...btongminh13:33, 12 May 2008

Status & tagging log