Skip to content

Commit

Permalink
Check settings key exists for plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Bart van Gennep committed Oct 19, 2015
1 parent 68d81c1 commit c8a6b07
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions services/Schematic_PluginsService.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@ public function import(array $pluginDefinitions)
$this->installPluginByHandle($handle);

$this->togglePluginByHandle($handle, $pluginDefinition['isEnabled']);

if(array_key_exists('settings', $pluginDefinition)){
$this->getPluginService()->savePluginSettings($plugin, $pluginDefinition['settings']);
}
} else {
$this->uninstallPluginByHandle($handle);
}
Expand Down

0 comments on commit c8a6b07

Please sign in to comment.