mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
FIX: Support adminPlugins
resource even if no plugins use it
This commit is contained in:
parent
7dea65122e
commit
3cfa37b1e6
1 changed files with 5 additions and 0 deletions
|
@ -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 a new issue