From c0a7fdc8019240f6328bb5e3e9223e762841d7af Mon Sep 17 00:00:00 2001 From: Daniel Rudolf Date: Mon, 29 Feb 2016 20:41:41 +0100 Subject: [PATCH] Don't always check dependants of a disabled plugin This isn't necessary because dependant plugins will check their dependencies on their own. Follow-up to f10440b --- lib/AbstractPicoPlugin.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/AbstractPicoPlugin.php b/lib/AbstractPicoPlugin.php index fcfd059..4ec5dab 100644 --- a/lib/AbstractPicoPlugin.php +++ b/lib/AbstractPicoPlugin.php @@ -77,9 +77,9 @@ abstract class AbstractPicoPlugin implements PicoPluginInterface $pluginConfig = $this->getConfig(get_called_class()); if (is_array($pluginConfig) && isset($pluginConfig['enabled'])) { $this->setEnabled($pluginConfig['enabled']); - } else { - // make sure dependencies are checked - $this->setEnabled($this->enabled, true, true); + } elseif ($this->enabled) { + // make sure dependencies are fulfilled + $this->checkDependencies(true); } } }