mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 11:35:55 +01:00
added compatibility for deprecated filter:header.build
remove after 0.7.x
This commit is contained in:
@@ -54,7 +54,12 @@ function getAvailable(callback) {
|
||||
return item;
|
||||
});
|
||||
|
||||
plugins.fireHook('filter:navigation.available', core, callback);
|
||||
// DEPRECATION: backwards compatibility for filter:header.build, will be removed soon.
|
||||
plugins.fireHook('filter:header.build', {navigation: []}, function(err, data) {
|
||||
core = core.concat(data.navigation);
|
||||
|
||||
plugins.fireHook('filter:navigation.available', core, callback);
|
||||
});
|
||||
}
|
||||
|
||||
module.exports = admin;
|
||||
Reference in New Issue
Block a user