MDL-58297 core: Update to use new hashing functions

This commit is contained in:
Andrew Nicols 2017-03-17 15:21:59 +08:00
parent a30a04fa01
commit e6a4780452
6 changed files with 18 additions and 14 deletions

View file

@ -118,7 +118,7 @@ class assignfeedback_file_zip_importer {
$contenthash = '';
if (is_array($file)) {
$content = reset($file);
$contenthash = sha1($content);
$contenthash = file_storage::hash_from_string($content);
} else {
$contenthash = $file->get_contenthash();
}