From 7496b5d135011dad2181fa717fa30cf1541f6943 Mon Sep 17 00:00:00 2001 From: Timotej Jazbec Date: Tue, 28 Oct 2025 09:59:50 +0100 Subject: [PATCH] remove class block_exacomp_ZipArchive --- export_scorm.php | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/export_scorm.php b/export_scorm.php index 33a2044d..bf49ee23 100644 --- a/export_scorm.php +++ b/export_scorm.php @@ -22,21 +22,10 @@ $itemsArray = array(); -class block_exacomp_ZipArchive extends \ZipArchive { - /** - * @return ZipArchive - */ - public static function create_temp_file() { - global $CFG; - $file = tempnam($CFG->tempdir, "zip"); - $zip = new ZipArchive(); - $zip->open($file, ZipArchive::OVERWRITE); - return $zip; - } -} - global $zip, $existingfilesarray; -$zip = block_exacomp_ZipArchive::create_temp_file(); +$file = tempnam($CFG->tempdir, "zip"); +$zip = new ZipArchive(); +$zip->open($file, ZipArchive::OVERWRITE); $existingfilesarray = array(); $courseid = optional_param("courseid", 0, PARAM_INT);