FU r106752: updated populateImageSha1.php script as needed
authorAaron Schulz <aaron@users.mediawiki.org>
Thu, 12 Jan 2012 20:50:14 +0000 (20:50 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Thu, 12 Jan 2012 20:50:14 +0000 (20:50 +0000)
maintenance/populateImageSha1.php

index 5222c2d..4cd2747 100644 (file)
@@ -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 );