mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 13:13:39 +08:00
FIX: Support adminPlugins
resource even if no plugins use it
This commit is contained in:
parent
7dea65122e
commit
3cfa37b1e6
|
@ -131,6 +131,11 @@ Discourse.Route.reopenClass({
|
|||
delete resources.root;
|
||||
}
|
||||
|
||||
// Even if no plugins set it up, we need an `adminPlugins` route
|
||||
var adminPlugins = 'admin.adminPlugins';
|
||||
resources[adminPlugins] = resources[adminPlugins] || [Ember.K];
|
||||
paths[adminPlugins] = paths[adminPlugins] || "/plugins";
|
||||
|
||||
var segments = {},
|
||||
standalone = [];
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user