added compatibility for deprecated filter:header.build

remove after 0.7.x
v1.18.x
psychobunny 10 years ago
parent bc7729fbb3
commit b788e134d1

@ -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 -->

Loading…
Cancel
Save