🐛 Autoinstall modules
This commit is contained in:
parent
da20d6a67d
commit
3cb045435e
1 changed files with 3 additions and 0 deletions
|
@ -102,6 +102,9 @@ function buildPlugins($path, $autoActivate = false)
|
|||
|
||||
// If the plugin is installed insert on the hooks
|
||||
if ($Plugin->installed() || $autoActivate) {
|
||||
if (!$Plugin->installed()) {
|
||||
$Plugin->install();
|
||||
}
|
||||
// Include custom hooks
|
||||
if (!empty($Plugin->customHooks)) {
|
||||
foreach ($Plugin->customHooks as $customHook) {
|
||||
|
|
Loading…
Add table
Reference in a new issue