From d2791a63ec415be5c5f0c383588e72f758e7e5c0 Mon Sep 17 00:00:00 2001 From: cescobedo Date: Mon, 30 Mar 2020 11:37:59 +0200 Subject: [PATCH] MDL-68285 core_h5p: Fix unused variables and undeclared globals --- h5p/classes/core.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/h5p/classes/core.php b/h5p/classes/core.php index 660396d0de0..d33897ddce7 100644 --- a/h5p/classes/core.php +++ b/h5p/classes/core.php @@ -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(