Commit b06969f1 authored by Nigel McNie's avatar Nigel McNie
Browse files

Fix undefined variable on file import - copy&paste-o.

parent 6ae5dd6f
......@@ -225,7 +225,7 @@ class LeapImportBlog extends LeapImportArtefactPlugin {
$file = LeapImportFile::create_file($entry, $importer);
$createdartefacts[] = $file->get('id');
$content = '<a href="' . get_config('wwwroot') . 'artefact/file/download.php?file=' . $fileid . '"'
$content = '<a href="' . get_config('wwwroot') . 'artefact/file/download.php?file=' . $file->get('id') . '"'
. ' title="' . hsc($file->get('title')) . '">';
if (is_image_mime_type($file->get('filetype'))) {
$content .= '<img src="' . get_config('wwwroot')
......
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