Replace deprecated File::sha1Base36 call
authorumherirrender <umherirrender_de.wp@web.de>
Mon, 23 Jun 2014 19:02:09 +0000 (21:02 +0200)
committerumherirrender <umherirrender_de.wp@web.de>
Mon, 23 Jun 2014 19:02:09 +0000 (21:02 +0200)
Change-Id: I0a2485f1a9426183e1b1c5a5b6e95966f23da237

maintenance/importImages.php

index 3dd4a9e..ae70441 100644 (file)
@@ -177,7 +177,7 @@ if ( $count > 0 ) {
                        if ( isset( $options['skip-dupes'] ) ) {
                                $repo = $image->getRepo();
                                # XXX: we end up calculating this again when actually uploading. that sucks.
-                               $sha1 = File::sha1Base36( $file );
+                               $sha1 = FSFile::getSha1Base36FromPath( $file );
 
                                $dupes = $repo->findBySha1( $sha1 );