mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
shift site settings in front of routes
This commit is contained in:
parent
e26cbe79ad
commit
b567bd3d37
2 changed files with 1 additions and 1 deletions
|
@ -227,7 +227,6 @@ Discourse = Ember.Application.createWithMixins(Discourse.Ajax, {
|
||||||
**/
|
**/
|
||||||
start: function() {
|
start: function() {
|
||||||
Discourse.bindDOMEvents();
|
Discourse.bindDOMEvents();
|
||||||
Discourse.SiteSettings = PreloadStore.get('siteSettings');
|
|
||||||
Discourse.MessageBus.alwaysLongPoll = Discourse.Environment === "development";
|
Discourse.MessageBus.alwaysLongPoll = Discourse.Environment === "development";
|
||||||
Discourse.MessageBus.start();
|
Discourse.MessageBus.start();
|
||||||
Discourse.KeyValueStore.init("discourse_", Discourse.MessageBus);
|
Discourse.KeyValueStore.init("discourse_", Discourse.MessageBus);
|
||||||
|
|
|
@ -21,6 +21,7 @@
|
||||||
Discourse.BaseUrl = '<%= RailsMultisite::ConnectionManagement.current_hostname %>';
|
Discourse.BaseUrl = '<%= RailsMultisite::ConnectionManagement.current_hostname %>';
|
||||||
Discourse.BaseUri = '<%= Discourse::base_uri "/" %>';
|
Discourse.BaseUri = '<%= Discourse::base_uri "/" %>';
|
||||||
Discourse.Environment = '<%= Rails.env %>';
|
Discourse.Environment = '<%= Rails.env %>';
|
||||||
|
Discourse.SiteSettings.login_required && !Discourse.User.current();
|
||||||
Discourse.Router.map(function() {
|
Discourse.Router.map(function() {
|
||||||
Discourse.routeBuilder.call(this);
|
Discourse.routeBuilder.call(this);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue