Commit 03a67e31 authored by Penny Leach's avatar Penny Leach
Browse files

Made the blog attachment importer use the static method to detect files



instead of manually checking the source attribute of the content
Signed-off-by: default avatarPenny Leach <penny@mjollnir.org>
parent ba3d50ae
......@@ -304,7 +304,7 @@ class LeapImportBlog extends LeapImportArtefactPlugin {
$blogpost->set('title', (string)$entry->title);
// If the entry has out of line content, we import that separately as a
// file and set the content to refer to it
if (isset($entry->content['src']) && isset($entry->content['type'])) {
if (LeapImportFile::is_file($entry, $importer)) {
$file = LeapImportFile::create_file($entry, $importer);
$createdartefacts[] = $file->get('id');
......
Markdown is supported
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