Check dependencies when a plugin is enabled by default

This commit is contained in:
Daniel Rudolf 2016-02-29 19:44:25 +01:00
parent 996d946eb7
commit f10440b996
2 changed files with 10 additions and 0 deletions

View file

@ -1,6 +1,13 @@
Pico Changelog
==============
### Version 1.0.2
Released: -
```
* [Fixed] Check dependencies when a plugin is enabled by default
```
### Version 1.0.1
Released: 2016-02-27

View file

@ -77,6 +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);
}
}
}