diff --git a/server/lib/classes/plugins.inc.php b/server/lib/classes/plugins.inc.php index 4808a563d0632e22e6238f0ccd6b352a3b4a4134..4771487dce37e3d97b282fc8cfa9235f894ea231 100644 --- a/server/lib/classes/plugins.inc.php +++ b/server/lib/classes/plugins.inc.php @@ -134,7 +134,7 @@ class plugins { function registerAction($action_name, $plugin_name, $function_name) { global $app; $this->subscribed_actions[$action_name][] = array('plugin' => $plugin_name, 'function' => $function_name); - if($this->debug) $app->log("Registered function '$function_name' from plugin '$plugin_name' for action '$event_name'.", LOGLEVEL_DEBUG); + if($this->debug) $app->log("Registered function '$function_name' from plugin '$plugin_name' for action '$action_name'.", LOGLEVEL_DEBUG); } diff --git a/server/server.php b/server/server.php index e4ebb5b19f44055c9bce9a4013353d548664eacf..ab2540442436465cdec4d458db3991ac902ee9ef 100644 --- a/server/server.php +++ b/server/server.php @@ -172,6 +172,9 @@ if ($app->db->connect_error == NULL && $app->dbmaster->connect_error == NULL) { $app->modules->loadModules('all'); //** Load the plugins that are in the plugins-enabled folder $app->plugins->loadPlugins('all'); + + $app->plugins->raiseAction('server_plugins_loaded', ''); + if ($tmp_num_records > 0) { $app->log("Found $tmp_num_records changes, starting update process.", LOGLEVEL_DEBUG); //** Go through the sys_datalog table and call the processing functions