mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Ignore plugin hook calling errors (#8693)
Mostly this is because the plugin methods aren't static.
This commit is contained in:
committed by
Neil Lathwood
parent
2815979f5f
commit
54aa0a4df4
@@ -90,9 +90,9 @@ class Plugins
|
|||||||
if (!empty(self::$plugins[$hook])) {
|
if (!empty(self::$plugins[$hook])) {
|
||||||
foreach (self::$plugins[$hook] as $name) {
|
foreach (self::$plugins[$hook] as $name) {
|
||||||
if (!is_array($params)) {
|
if (!is_array($params)) {
|
||||||
call_user_func(array($name, $hook));
|
@call_user_func(array($name, $hook));
|
||||||
} else {
|
} else {
|
||||||
call_user_func_array(array($name, $hook), $params);
|
@call_user_func_array(array($name, $hook), $params);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user