git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@12343
7612ce4b-ef26-0410-bec9-
ea0150e637f0
use_plugin($plugin_name);
if (function_exists($function)) {
$ret = $function($args, $ret);
use_plugin($plugin_name);
if (function_exists($function)) {
$ret = $function($args, $ret);
+
+ // each plugin can call additional hooks, so need
+ // to make sure the current hook name is accurate
+ // again after each plugin has finished
+ //
+ $currentHookName = $name;
if (!empty($plugin_ret)) {
$ret = sqm_array_merge($ret, $plugin_ret);
}
if (!empty($plugin_ret)) {
$ret = sqm_array_merge($ret, $plugin_ret);
}
+
+ // each plugin can call additional hooks, so need
+ // to make sure the current hook name is accurate
+ // again after each plugin has finished
+ //
+ $currentHookName = $name;
+
+ // each plugin can call additional hooks, so need
+ // to make sure the current hook name is accurate
+ // again after each plugin has finished
+ //
+ $currentHookName = $name;
}
}
$currentHookName = '';
}
}
$currentHookName = '';