Skip to content
Permalink
Browse files Browse the repository at this point in the history
fixed 0027431
  • Loading branch information
alex40724 committed Jan 29, 2020
1 parent d921d81 commit 6717c4e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Services/Export/classes/class.ilImportExportFactory.php
Expand Up @@ -78,7 +78,6 @@ public static function getImporterClass($a_component)
* @var $objDefinition ilObjectDefinition
*/
global $DIC;

$objDefinition = $DIC['objDefinition'];

$parts = explode('/', $a_component);
Expand All @@ -94,7 +93,6 @@ public static function getImporterClass($a_component)
}
} else {
$class = "il" . $component . "Importer";

// treat special case of page component plugins
// they are imported with component type PLUGINS_DIR
// but are not yet recognized by ilObjDefinition::isPlugin()
Expand All @@ -111,9 +109,7 @@ public static function getImporterClass($a_component)
}

if (is_file("./" . $a_component . "/classes/class." . $class . ".php")) {
if (include_once "./" . $a_component . "/classes/class." . $class . ".php") {
return $class;
}
return $class;
}
}

Expand Down

0 comments on commit 6717c4e

Please sign in to comment.