Commit 9fa71fb4 authored by Francois Marier's avatar Francois Marier
Browse files

import/leap: fix contenttype selection for empty entries



This was preventing entries like these from being imported:

   <entry>
        <title>Something</title>
        <id>portfolio:artefactinternal</id>
        <content type=""></content>
   </entry>
Signed-off-by: default avatarFrancois Marier <francois@catalyst.net.nz>
parent 4339ecf6
......@@ -1010,6 +1010,8 @@ class PluginImportLeap extends PluginImport {
case 'html':
case 'text':
return (string)$entry->content;
case '':
return ''; // empty entry
default:
throw new SystemException("Unrecognised content type for entry '$entry->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