MDL-68285 core_h5p: Fix unused variables and undeclared globals

This commit is contained in:
cescobedo
2020-03-30 11:37:59 +02:00
parent 49914a57d4
commit d2791a63ec
-4
View File
@@ -219,10 +219,6 @@ class core extends \H5PCore {
public function fetch_content_type(array $library): ?int {
$factory = new factory();
// Get a temp path to download the content type.
$temppath = make_request_directory();
$tempfile = "{$temppath}/" . $library['machineName'] . ".h5p";
// Download the latest content type from the H5P official repository.
$fs = get_file_storage();
$file = $fs->create_file_from_url(