Skip to content

Commit

Permalink
Merge branch 'MDL-71777' of https://github.com/appalachianstate/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
sarjona committed Jun 28, 2021
2 parents a747fd3 + 1e34610 commit 6144623
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/classes/antivirus/scanner.php
Expand Up @@ -204,7 +204,7 @@ public function get_incident_details($file = '', $filename = '', $notice = '', $
// Check for empty file, or file not uploaded.
if (!empty($file) && filesize($file) !== false) {
$content->filesize = display_size(filesize($file));
$content->contenthash = \file_storage::hash_from_string(file_get_contents($file));
$content->contenthash = \file_storage::hash_from_path($file);
$content->contenttype = mime_content_type($file);
} else {
$content->filesize = $unknown;
Expand Down

0 comments on commit 6144623

Please sign in to comment.