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;
|
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 = {},
|
var segments = {},
|
||||||
standalone = [];
|
standalone = [];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue