r30081 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r30080‎ | r30081 | r30082 >
Date:20:32, 23 January 2008
Author:btongminh
Status:old
Tags:
Comment:
ApiQueryImageInfo: Convert sha1 to base16 like before r29981
Modified paths:
  • /trunk/phase3/includes/api/ApiQueryImageInfo.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiQueryImageInfo.php
@@ -131,7 +131,7 @@
132132 if($this->fld_comment)
133133 $vals['comment'] = $f->getDescription();
134134 if($this->fld_sha1)
135 - $vals['sha1'] = $f->getSha1();
 135+ $vals['sha1'] = wfBaseConvert($f->getSha1(), 36, 16, 40);
136136 if($this->fld_metadata) {
137137 $metadata = unserialize($f->getMetadata());
138138 $vals['metadata'] = $metadata ? $metadata : null;

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r29981* Refactoring ApiQueryImageInfo to use new File::loadHistory() interface. No ...catrope13:09, 20 January 2008

Status & tagging log