Commit 9f180398 authored by Nigel McNie's avatar Nigel McNie
Browse files

Catching and throwing away exceptions should be a capital offense.

Why exactly is this trying to catch an exception anyway??
parent 7ec7a75b
......@@ -274,14 +274,11 @@ class PluginExportLeap extends PluginExport {
};
$element = null;
// go see if we have to do anything special for this artefact type.
try {
safe_require('export', 'leap/' . $artefact->get_plugin_name());
$classname = 'LeapExportElement' . ucfirst($artefact->get('artefacttype'));
if (class_exists($classname)) {
$element = new $classname($artefact, $this);
}
safe_require('export', 'leap/' . $artefact->get_plugin_name());
$classname = 'LeapExportElement' . ucfirst($artefact->get('artefacttype'));
if (class_exists($classname)) {
$element = new $classname($artefact, $this);
}
catch (Exception $e) { }// overriding this is not required.
if (is_null($element)) {
$element = new LeapExportElement($artefact, $this);
......
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