Rework plugins #78

Merged
kazhnuz merged 14 commits from feat/plugin-rework into koblog2 2025-07-04 20:50:44 +02:00
Showing only changes of commit 3cb045435e - Show all commits

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