Skip to content

Commit

Permalink
cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
Loïc committed Sep 23, 2017
1 parent 166c8c5 commit 79be2a2
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions core/class/plugin.class.php
Expand Up @@ -163,14 +163,12 @@ public static function listPlugin($_activateOnly = false, $_orderByCaterogy = fa
if (!file_exists($pathInfoPlugin)) {
continue;
}
if (file_exists($pathInfoPlugin)) {
try {
$listPlugin[] = plugin::byId($pathInfoPlugin, $_translate);
} catch (Exception $e) {
log::add('plugin', 'error', $e->getMessage(), 'pluginNotFound::' . $pathInfoPlugin);
} catch (Error $e) {
log::add('plugin', 'error', $e->getMessage(), 'pluginNotFound::' . $pathInfoPlugin);
}
try {
$listPlugin[] = plugin::byId($pathInfoPlugin, $_translate);
} catch (Exception $e) {
log::add('plugin', 'error', $e->getMessage(), 'pluginNotFound::' . $pathInfoPlugin);
} catch (Error $e) {
log::add('plugin', 'error', $e->getMessage(), 'pluginNotFound::' . $pathInfoPlugin);
}
}
}
Expand Down

0 comments on commit 79be2a2

Please sign in to comment.