Skip to content

Commit 5e17a51

Browse files
committed
MBS-9847: Avoid duplicate files in export
1 parent d8584e7 commit 5e17a51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

classes/exporter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public function export_files(int $compcatid = 0): array {
103103
// It is necessary to get the files for each compcat separately to avoid mixing up files from
104104
// different categories.
105105
foreach ($compcats as $compcat) {
106-
$files = $fs->get_area_files($this->contextid, 'tiny_elements', 'images', $compcat->id);
106+
$files = $fs->get_area_files($this->contextid, 'tiny_elements', 'images', $compcat->id, 'itemid', false);
107107
foreach ($files as $file) {
108108
$exportfiles[$compcat->name . '/' . $file->get_filepath() . $file->get_filename()] = $file;
109109
}

0 commit comments

Comments
 (0)