Commit 75dcf99b authored by Nigel McNie's avatar Nigel McNie
Browse files

Use proper function to generate artefact class name.


Signed-off-by: default avatarNigel McNie <nigel@catalyst.net.nz>
parent 450ec8bd
......@@ -586,7 +586,7 @@ class LeapImportInternal extends LeapImportArtefactPlugin {
* @return int The ID of the artefact created
*/
private static function create_artefact(PluginImportLeap $importer, $artefacttype, $title) {
$classname = 'ArtefactType' . ucfirst($artefacttype);
$classname = generate_artefact_class_name($artefacttype);
$artefact = new $classname(0, array('owner' => $importer->get('usr')));
$artefact->set('title', $title);
$artefact->commit();
......
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