Index: trunk/phase3/includes/api/ApiQuerySearch.php |
— | — | @@ -65,6 +65,9 @@ |
66 | 66 | $matches = $search->searchText( $query ); |
67 | 67 | else |
68 | 68 | $matches = $search->searchTitle( $query ); |
| 69 | + if (is_null($matches)) |
| 70 | + $this->dieUsage("{$params['what']} search is disabled", |
| 71 | + "search-{$params['what']}-disabled"); |
69 | 72 | |
70 | 73 | $data = array (); |
71 | 74 | $count = 0; |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -150,6 +150,7 @@ |
151 | 151 | * (bug 13442) Missing pages in prop=langlinks and prop=extlinks are now |
152 | 152 | handled properly. |
153 | 153 | * (bug 13444) Add description to list=watchlist |
| 154 | +* (bug 13482) Disabled search types handled properly |
154 | 155 | |
155 | 156 | === Languages updated in 1.13 === |
156 | 157 | |