Index: branches/REL1_12/phase3/includes/api/ApiQueryLangLinks.php |
— | — | @@ -40,6 +40,9 @@ |
41 | 41 | } |
42 | 42 | |
43 | 43 | public function execute() { |
| 44 | + if ( $this->getPageSet()->getGoodTitleCount() == 0 ) |
| 45 | + return; |
| 46 | + |
44 | 47 | $this->addFields(array ( |
45 | 48 | 'll_from', |
46 | 49 | 'll_lang', |
Index: branches/REL1_12/phase3/includes/api/ApiQueryExternalLinks.php |
— | — | @@ -40,6 +40,8 @@ |
41 | 41 | } |
42 | 42 | |
43 | 43 | public function execute() { |
| 44 | + if ( $this->getPageSet()->getGoodTitleCount() == 0 ) |
| 45 | + return; |
44 | 46 | |
45 | 47 | $this->addFields(array ( |
46 | 48 | 'el_from', |
Index: branches/REL1_12/phase3/includes/api/ApiResult.php |
— | — | @@ -147,7 +147,7 @@ |
148 | 148 | { |
149 | 149 | if(!is_array($arr)) |
150 | 150 | return; |
151 | | - foreach($arr as $a) |
| 151 | + foreach($arr as &$a) |
152 | 152 | { |
153 | 153 | if(!is_array($a)) |
154 | 154 | continue; |
Index: branches/REL1_12/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: branches/REL1_12/phase3/RELEASE-NOTES |
— | — | @@ -13,8 +13,12 @@ |
14 | 14 | * (bug 13532) Use proper timestamp call when reverting images |
15 | 15 | * (bug 13649) Bad call to wfTimestamp() |
16 | 16 | * (bug 13770) Use Preprocessor_Hash by default to avoid missing DOM module errors |
| 17 | +* (bug 13442) Missing pages in prop=langlinks and prop=extlinks are now |
| 18 | + handled properly. |
| 19 | +* (bug 13482) Disabled search types handled properly |
| 20 | +* (bug 13836) Fixed fatal errors resulting from combining iiprop=metadata with |
| 21 | + format=xml |
17 | 22 | |
18 | | - |
19 | 23 | == MediaWiki 1.12.0 == |
20 | 24 | |
21 | 25 | This is the quarterly branch release of MediaWiki for Winter 2008. |