Index: trunk/phase3/includes/api/ApiQueryDeletedrevs.php |
— | — | @@ -236,7 +236,7 @@ |
237 | 237 | $rev['len'] = $row->ar_len; |
238 | 238 | } |
239 | 239 | if ( $fld_sha1 ) { |
240 | | - $rev['sha1'] = $row->ar_sha1; |
| 240 | + $rev['sha1'] = wfBaseConvert( $row->ar_sha1, 36, 16, 40 ); |
241 | 241 | } |
242 | 242 | if ( $fld_content ) { |
243 | 243 | ApiResult::setContent( $rev, Revision::getRevisionText( $row ) ); |
— | — | @@ -347,7 +347,7 @@ |
348 | 348 | ' parsedcomment - Adds the parsed comment of the revision', |
349 | 349 | ' minor - Tags if the revision is minor', |
350 | 350 | ' len - Adds the length (bytes) of the revision', |
351 | | - ' sha1 - Adds the SHA-1 (base 36) of the revision', |
| 351 | + ' sha1 - Adds the SHA-1 (base 16) of the revision', |
352 | 352 | ' content - Adds the content of the revision', |
353 | 353 | ' token - Gives the edit token', |
354 | 354 | ), |
Index: trunk/phase3/includes/api/ApiQueryRevisions.php |
— | — | @@ -414,7 +414,7 @@ |
415 | 415 | } |
416 | 416 | |
417 | 417 | if ( $this->fld_sha1 ) { |
418 | | - $vals['sha1'] = $revision->getSha1(); |
| 418 | + $vals['sha1'] = wfBaseConvert( $revision->getSha1(), 36, 16, 40 ); |
419 | 419 | } |
420 | 420 | |
421 | 421 | if ( $this->fld_comment || $this->fld_parsedcomment ) { |
— | — | @@ -606,7 +606,7 @@ |
607 | 607 | ' user - User that made the revision', |
608 | 608 | ' userid - User id of revision creator', |
609 | 609 | ' size - Length (bytes) of the revision', |
610 | | - ' sha1 - SHA-1 (base 36) the revision', |
| 610 | + ' sha1 - SHA-1 (base 16) the revision', |
611 | 611 | ' comment - Comment by the user for revision', |
612 | 612 | ' parsedcomment - Parsed comment by the user for the revision', |
613 | 613 | ' content - Text of the revision', |