Index: trunk/phase3/includes/api/ApiQueryImageInfo.php |
— | — | @@ -50,6 +50,7 @@ |
51 | 51 | $fld_comment = isset($prop['comment']); |
52 | 52 | $fld_url = isset($prop['url']); |
53 | 53 | $fld_size = isset($prop['size']); |
| 54 | + $fld_sha1 = isset($prop['sha1']); |
54 | 55 | |
55 | 56 | $pageIds = $this->getPageSet()->getAllTitlesByNamespace(); |
56 | 57 | if (!empty($pageIds[NS_IMAGE])) { |
— | — | @@ -87,6 +88,9 @@ |
88 | 89 | $vals['url'] = $isCur ? $img->getURL() : $img->getArchiveUrl($row["oi_archive_name"]); |
89 | 90 | if ($fld_comment) |
90 | 91 | $vals['comment'] = $row["{$prefix}_description"]; |
| 92 | + |
| 93 | + if ($fld_sha1) |
| 94 | + $vals['sha1'] = wfBaseConvert($row["{$prefix}_sha1"], 36, 16, 40); |
91 | 95 | |
92 | 96 | $data[] = $vals; |
93 | 97 | |
— | — | @@ -119,6 +123,7 @@ |
120 | 124 | 'comment', |
121 | 125 | 'url', |
122 | 126 | 'size', |
| 127 | + 'sha1' |
123 | 128 | ) |
124 | 129 | ), |
125 | 130 | 'history' => false, |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -427,7 +427,6 @@ |
428 | 428 | * Preventing the TOC from appearing in Special:Statistics |
429 | 429 | * (bug 11082) Fix check for fully-specced table names in Database::tableName |
430 | 430 | * (bug 11067) Fix regression in upload conflict thumbnail display |
431 | | -* (bug 11072) Fix regression in API image history query |
432 | 431 | * (bug 10985) Resolved cached entries on Special:DoubleRedirects were being |
433 | 432 | supressed, breaking paging - now strikes out "fixed" results |
434 | 433 | * (bug 8393) <sup> and <sub> need to be preserved (without attributes) for |
— | — | @@ -495,6 +494,8 @@ |
496 | 495 | * Treat underscores as spaces for `aufrom` and `auprefix` parameters |
497 | 496 | * Added edit/delete/... token retrieval to prop=info |
498 | 497 | * Added meta=userinfo - logged-in user information, group membership, rights |
| 498 | +* (bug 11072) Fix regression in API image history query |
| 499 | +* (bug 11115) Adding SHA1 hash to imageinfo query |
499 | 500 | |
500 | 501 | == Maintenance script changes since 1.10 == |
501 | 502 | |