Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion classes/class.ilTestPageComponentExporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down
2 changes: 1 addition & 1 deletion classes/class.ilTestPageComponentImporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
1 change: 0 additions & 1 deletion classes/class.ilTestPageComponentPluginGUI.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down