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
This commit is contained in:
parent
98b1f87281
commit
c0a7fdc801
1 changed files with 3 additions and 3 deletions
|
@ -77,9 +77,9 @@ abstract class AbstractPicoPlugin implements PicoPluginInterface
|
||||||
$pluginConfig = $this->getConfig(get_called_class());
|
$pluginConfig = $this->getConfig(get_called_class());
|
||||||
if (is_array($pluginConfig) && isset($pluginConfig['enabled'])) {
|
if (is_array($pluginConfig) && isset($pluginConfig['enabled'])) {
|
||||||
$this->setEnabled($pluginConfig['enabled']);
|
$this->setEnabled($pluginConfig['enabled']);
|
||||||
} else {
|
} elseif ($this->enabled) {
|
||||||
// make sure dependencies are checked
|
// make sure dependencies are fulfilled
|
||||||
$this->setEnabled($this->enabled, true, true);
|
$this->checkDependencies(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue