From 7a61f19e37f5475cb77c4735ce81afe3064edc3c Mon Sep 17 00:00:00 2001 From: umherirrender Date: Mon, 23 Jun 2014 21:02:09 +0200 Subject: [PATCH] Replace deprecated File::sha1Base36 call Change-Id: I0a2485f1a9426183e1b1c5a5b6e95966f23da237 --- maintenance/importImages.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); -- 2.20.1