MDL-83807 h5p: Return a default valid H5P
This commit is contained in:
committed by
Katie Ransom
parent
02e8cebdd2
commit
e10420df88
@@ -54,7 +54,7 @@ class mod_h5pactivity_generator extends testing_module_generator {
|
||||
|
||||
// Fill in optional values if not specified.
|
||||
if (!isset($record->packagefilepath)) {
|
||||
$record->packagefilepath = $CFG->dirroot.'/h5p/tests/fixtures/h5ptest.zip';
|
||||
$record->packagefilepath = $CFG->dirroot.'/h5p/tests/fixtures/ipsums.h5p';
|
||||
} else if (strpos($record->packagefilepath, $CFG->dirroot) !== 0) {
|
||||
$record->packagefilepath = "{$CFG->dirroot}/{$record->packagefilepath}";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user