🐛 Autoinstall modules

This commit is contained in:
Kazhnuz 2025-07-03 21:54:35 +02:00
parent da20d6a67d
commit 3cb045435e

View file

@ -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) {