X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FimportImages.php;h=ae70441f1b509ec57a004ed1edd05a0edac5f48d;hb=253dbff3224d38c7af0986f949f9b248a3d4e0dc;hp=3dd4a9e4ad1a37e17c5416841d55264d3b8bd4f8;hpb=0b7f75739786a44feab8eca1a9ec21b72e3bb2cc;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/importImages.php b/maintenance/importImages.php index 3dd4a9e4ad..ae70441f1b 100644 --- a/maintenance/importImages.php +++ b/maintenance/importImages.php @@ -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 );