Index: branches/REL1_12/phase3/includes/api/ApiQuery.php |
— | — | @@ -274,7 +274,7 @@ |
275 | 275 | $redirValues = array (); |
276 | 276 | foreach ($pageSet->getRedirectTitles() as $titleStrFrom => $titleStrTo) { |
277 | 277 | $redirValues[] = array ( |
278 | | - 'from' => $titleStrFrom, |
| 278 | + 'from' => strval($titleStrFrom), |
279 | 279 | 'to' => $titleStrTo |
280 | 280 | ); |
281 | 281 | } |
Index: branches/REL1_12/phase3/includes/api/ApiQuerySiteinfo.php |
— | — | @@ -75,7 +75,7 @@ |
76 | 76 | |
77 | 77 | $data = array (); |
78 | 78 | $mainPage = Title :: newFromText(wfMsgForContent('mainpage')); |
79 | | - $data['mainpage'] = $mainPage->getText(); |
| 79 | + $data['mainpage'] = $mainPage->getPrefixedText(); |
80 | 80 | $data['base'] = $mainPage->getFullUrl(); |
81 | 81 | $data['sitename'] = $wgSitename; |
82 | 82 | $data['generator'] = "MediaWiki $wgVersion"; |
Index: branches/REL1_12/phase3/includes/api/ApiQueryCategoryMembers.php |
— | — | @@ -78,7 +78,7 @@ |
79 | 79 | $this->addFields(array('cl_from', 'cl_sortkey')); |
80 | 80 | } |
81 | 81 | |
82 | | - $this->addFieldsIf('cl_timestamp', $fld_timestamp); |
| 82 | + $this->addFieldsIf('cl_timestamp', $fld_timestamp || $params['sort'] == 'timestamp'); |
83 | 83 | $this->addTables(array('page','categorylinks')); // must be in this order for 'USE INDEX' |
84 | 84 | // Not needed after bug 10280 is applied to servers |
85 | 85 | if($params['sort'] == 'timestamp') |
— | — | @@ -111,7 +111,10 @@ |
112 | 112 | if (++ $count > $limit) { |
113 | 113 | // We've reached the one extra which shows that there are additional pages to be had. Stop here... |
114 | 114 | // TODO: Security issue - if the user has no right to view next title, it will still be shown |
115 | | - $this->setContinueEnumParameter('continue', $this->getContinueStr($row, $lastSortKey)); |
| 115 | + if ($params['sort'] == 'timestamp') |
| 116 | + $this->setContinueEnumParameter('start', $row->cl_timestamp); |
| 117 | + else |
| 118 | + $this->setContinueEnumParameter('continue', $this->getContinueStr($row, $lastSortKey)); |
116 | 119 | break; |
117 | 120 | } |
118 | 121 | |
Index: branches/REL1_12/phase3/RELEASE-NOTES |
— | — | @@ -12,13 +12,19 @@ |
13 | 13 | * (bug 12077) Fix HTML nesting for TOC |
14 | 14 | * (bug 13532) Use proper timestamp call when reverting images |
15 | 15 | * (bug 13649, 14084) Bad call to wfTimestamp() |
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 |
| 16 | +* (bug 13770) Use Preprocessor_Hash by default to avoid missing DOM module |
| 17 | + errors |
| 18 | +* (bug 13442) API: Missing pages in prop=langlinks and prop=extlinks are now |
18 | 19 | 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 |
22 | | - |
| 20 | +* (bug 13482) API: Disabled search types handled properly |
| 21 | +* (bug 13836) API: Fixed fatal errors resulting from combining iiprop=metadata |
| 22 | + with format=xml |
| 23 | +* (bug 11633) API: Explicitly convert redirect titles to strings due to PHP's |
| 24 | + very weak typing on array keys. |
| 25 | +* API: Fixing main page display in meta=siteinfo |
| 26 | +* (bug 11719) API: Remove trailing blanks in YAML output. |
| 27 | +* (bug 13718) API: Return the proper continue parameter for cmsort=timestamp |
| 28 | + |
23 | 29 | == MediaWiki 1.12.0 == |
24 | 30 | |
25 | 31 | This is the quarterly branch release of MediaWiki for Winter 2008. |