From 9d436f8a76a71d34049026b789393e83f333ff60 Mon Sep 17 00:00:00 2001 From: Diego Najar Date: Thu, 9 May 2019 17:19:56 +0200 Subject: [PATCH] variable with installed plugins --- bl-kernel/boot/rules/60.plugins.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bl-kernel/boot/rules/60.plugins.php b/bl-kernel/boot/rules/60.plugins.php index 80893d39..66e885e4 100644 --- a/bl-kernel/boot/rules/60.plugins.php +++ b/bl-kernel/boot/rules/60.plugins.php @@ -43,6 +43,8 @@ $plugins = array( $pluginsEvents = $plugins; unset($pluginsEvents['all']); +$pluginsInstalled = array(); + // ============================================================================ // Functions // ============================================================================ @@ -51,6 +53,7 @@ function buildPlugins() { global $plugins; global $pluginsEvents; + global $pluginsInstalled; global $L; global $site; @@ -98,6 +101,7 @@ function buildPlugins() // If the plugin is installed insert on the hooks if ($Plugin->installed()) { + $pluginsInstalled[$pluginClass] = $Plugin; foreach ($pluginsEvents as $event=>$value) { if (method_exists($Plugin, $event)) { array_push($plugins[$event], $Plugin);