mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 17:06:53 +02:00
MDL-58297 core: Update to use new hashing functions
This commit is contained in:
parent
a30a04fa01
commit
e6a4780452
6 changed files with 18 additions and 14 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue