$rev['len'] = $row->ar_len;
}
if ( $fld_sha1 ) {
- $rev['sha1'] = $row->ar_sha1;
+ $rev['sha1'] = wfBaseConvert( $row->ar_sha1, 36, 16, 40 );
}
if ( $fld_content ) {
ApiResult::setContent( $rev, Revision::getRevisionText( $row ) );
' parsedcomment - Adds the parsed comment of the revision',
' minor - Tags if the revision is minor',
' len - Adds the length (bytes) of the revision',
- ' sha1 - Adds the SHA-1 (base 36) of the revision',
+ ' sha1 - Adds the SHA-1 (base 16) of the revision',
' content - Adds the content of the revision',
' token - Gives the edit token',
),
}
if ( $this->fld_sha1 ) {
- $vals['sha1'] = $revision->getSha1();
+ $vals['sha1'] = wfBaseConvert( $revision->getSha1(), 36, 16, 40 );
}
if ( $this->fld_comment || $this->fld_parsedcomment ) {
' user - User that made the revision',
' userid - User id of revision creator',
' size - Length (bytes) of the revision',
- ' sha1 - SHA-1 (base 36) the revision',
+ ' sha1 - SHA-1 (base 16) the revision',
' comment - Comment by the user for revision',
' parsedcomment - Parsed comment by the user for the revision',
' content - Text of the revision',