mirror of
https://github.com/moodle/moodle.git
synced 2025-03-22 00:20:37 +01:00
Merge branch 'MDL-71777' of https://github.com/appalachianstate/moodle
This commit is contained in:
commit
6144623683
@ -204,7 +204,7 @@ abstract class scanner {
|
||||
// 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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user