Skip to content

Commit ab6e698

Browse files
author
Marius Cramer
committed
Fixed missing raiseAction in server.php
Fixed output of action name in debug mode (registerAction)
1 parent 35509d5 commit ab6e698

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

server/lib/classes/plugins.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ function raiseEvent($event_name, $data) {
134134
function registerAction($action_name, $plugin_name, $function_name) {
135135
global $app;
136136
$this->subscribed_actions[$action_name][] = array('plugin' => $plugin_name, 'function' => $function_name);
137-
if($this->debug) $app->log("Registered function '$function_name' from plugin '$plugin_name' for action '$event_name'.", LOGLEVEL_DEBUG);
137+
if($this->debug) $app->log("Registered function '$function_name' from plugin '$plugin_name' for action '$action_name'.", LOGLEVEL_DEBUG);
138138
}
139139

140140

server/server.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,9 @@
172172
$app->modules->loadModules('all');
173173
//** Load the plugins that are in the plugins-enabled folder
174174
$app->plugins->loadPlugins('all');
175+
176+
$app->plugins->raiseAction('server_plugins_loaded', '');
177+
175178
if ($tmp_num_records > 0) {
176179
$app->log("Found $tmp_num_records changes, starting update process.", LOGLEVEL_DEBUG);
177180
//** Go through the sys_datalog table and call the processing functions

0 commit comments

Comments
 (0)