X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FimportImages.php;h=ae70441f1b509ec57a004ed1edd05a0edac5f48d;hb=887fb377d9df8768d98ed4d7e215f9ce0e538499;hp=3dd4a9e4ad1a37e17c5416841d55264d3b8bd4f8;hpb=e03f5e9c9e5fef7be2c995aafcf1a5c9fff3d69a;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 );