From: Aaron Schulz Date: Thu, 12 Jan 2012 20:50:14 +0000 (+0000) Subject: FU r106752: updated populateImageSha1.php script as needed X-Git-Tag: 1.31.0-rc.0~25325 X-Git-Url: http://git.cyclocoop.org/%22.%24info%5B?a=commitdiff_plain;h=4b216bfed41244083292a93220994a919f1e33cd;p=lhc%2Fweb%2Fwiklou.git FU r106752: updated populateImageSha1.php script as needed --- diff --git a/maintenance/populateImageSha1.php b/maintenance/populateImageSha1.php index 5222c2dba7..4cd2747c2f 100644 --- a/maintenance/populateImageSha1.php +++ b/maintenance/populateImageSha1.php @@ -94,7 +94,7 @@ class PopulateImageSha1 extends LoggedUpdateMaintenance { if ( !$file ) { continue; } - $sha1 = File::sha1Base36( $file->getPath() ); + $sha1 = $file->getRepo()->getFileSha1( $file->getPath() ); if ( strval( $sha1 ) !== '' ) { $sql = "UPDATE $imageTable SET img_sha1=" . $dbw->addQuotes( $sha1 ) . " WHERE img_name=" . $dbw->addQuotes( $row->img_name );