diff --git a/classes/class.ilTestPageComponentExporter.php b/classes/class.ilTestPageComponentExporter.php index 7866b98..8d516f7 100644 --- a/classes/class.ilTestPageComponentExporter.php +++ b/classes/class.ilTestPageComponentExporter.php @@ -49,7 +49,7 @@ public function getXmlExportHeadDependencies(string $a_entity, string $a_target_ if (!empty(($file_ids))) { return array( array( - "component" => "Modules/File", + "component" => "components/ILIAS/File", "entity" => "file", "ids" => $file_ids ) diff --git a/classes/class.ilTestPageComponentImporter.php b/classes/class.ilTestPageComponentImporter.php index 9ab7a62..e95350d 100644 --- a/classes/class.ilTestPageComponentImporter.php +++ b/classes/class.ilTestPageComponentImporter.php @@ -54,7 +54,7 @@ public function importXmlRepresentation( // write the mapped file id to the properties if ($old_file_id = $properties['page_file']) { - $new_file_id = $a_mapping->getMapping("Modules/File", 'file', $old_file_id); + $new_file_id = $a_mapping->getMapping("components/ILIAS/File", 'file', $old_file_id); $properties['page_file'] = $new_file_id; } diff --git a/classes/class.ilTestPageComponentPluginGUI.php b/classes/class.ilTestPageComponentPluginGUI.php index 78b08f9..8ea5bbc 100644 --- a/classes/class.ilTestPageComponentPluginGUI.php +++ b/classes/class.ilTestPageComponentPluginGUI.php @@ -172,7 +172,6 @@ protected function saveForm(ilPropertyFormGUI $form, bool $a_create) : bool $fileObj->setTitle($_FILES["page_file"]["name"]); $fileObj->setDescription(""); $fileObj->setFileName($_FILES["page_file"]["name"]); - $fileObj->setMode("filelist"); if (empty($old_file_id)) { $fileObj->create(); } else {