mirror of
https://github.com/moodle/moodle.git
synced 2025-08-07 01:46:45 +02:00
MDL-32147 - use correct 404 for server type
This commit is contained in:
parent
6ceef54c6e
commit
dbdc735559
2 changed files with 13 additions and 3 deletions
|
@ -924,7 +924,7 @@ function scorm_pluginfile($course, $cm, $context, $filearea, $args, $forcedownlo
|
|||
$fs = get_file_storage();
|
||||
if (!$file = $fs->get_file_by_hash(sha1($fullpath)) or $file->is_directory()) {
|
||||
if ($filearea === 'content') { //return file not found straight away to improve performance.
|
||||
header('HTTP/1.0 404 not found');
|
||||
send_header_404();
|
||||
die;
|
||||
}
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue