From: umherirrender Date: Mon, 23 Jun 2014 19:02:09 +0000 (+0200) Subject: Replace deprecated File::sha1Base36 call X-Git-Tag: 1.31.0-rc.0~15274^2 X-Git-Url: http://git.cyclocoop.org/data/%24oldEdit?a=commitdiff_plain;h=7a61f19e37f5475cb77c4735ce81afe3064edc3c;p=lhc%2Fweb%2Fwiklou.git Replace deprecated File::sha1Base36 call Change-Id: I0a2485f1a9426183e1b1c5a5b6e95966f23da237 --- 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 );