mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 12:05:57 +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;
|
||||
@@ -51,7 +51,7 @@
|
||||
</li>
|
||||
<!-- BEGIN available -->
|
||||
<li data-id="@index" class="alert <!-- IF available.core -->alert-info<!-- ELSE -->alert-success<!-- ENDIF available.core -->">
|
||||
<strong>{available.title}</strong> {available.route}
|
||||
<strong>{available.text}</strong> {available.route}
|
||||
<span class="pull-right badge"><!-- IF available.core -->core<!-- ELSE -->plugin<!-- ENDIF available.core --></span>
|
||||
</li>
|
||||
<!-- END available -->
|
||||
|
||||
Reference in New Issue
Block a user