Commit 6bdb24eb authored by Penny Leach's avatar Penny Leach
Browse files

leap import - fixed a problem where files were not being created


Signed-off-by: default avatarPenny Leach <penny@mjollnir.org>
parent fab3a7fd
......@@ -244,7 +244,7 @@ class LeapImportFile extends LeapImportArtefactPlugin {
$pathname = $dir . DIRECTORY_SEPARATOR . $pathname;
// This API sucks, but that's not my problem
if (!$id = ArtefactTypeFile::save_file($pathname, $data, $importer->get('usrobj'))) {
if (!$id = ArtefactTypeFile::save_file($pathname, $data, $importer->get('usrobj'), true)) {
$importer->trace("WARNING: the file for entry $entry->id does not exist in the import (path={$entry->content['src']})");
return;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment