mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-06 14:06:47 +02:00
refactor: move plugin hook methods to plugin.hooks.*
This commit is contained in:
@@ -160,7 +160,7 @@ module.exports = function (Plugins) {
|
||||
}
|
||||
|
||||
if (Array.isArray(pluginData.hooks)) {
|
||||
pluginData.hooks.forEach(hook => Plugins.registerHook(pluginData.id, hook));
|
||||
pluginData.hooks.forEach(hook => Plugins.hooks.register(pluginData.id, hook));
|
||||
}
|
||||
} catch (err) {
|
||||
winston.warn('[plugins] Unable to load library for: ' + pluginData.id);
|
||||
|
||||
Reference in New Issue
Block a user