mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
FIX: set_locale filter must be executed before check_xhr filter because check_xhr filter renders html in some cases
This commit is contained in:
parent
ce64cd4205
commit
2d9876a6ac
1 changed files with 1 additions and 1 deletions
|
@ -25,6 +25,7 @@ class ApplicationController < ActionController::Base
|
|||
end
|
||||
end
|
||||
|
||||
before_filter :set_locale
|
||||
before_filter :set_mobile_view
|
||||
before_filter :inject_preview_style
|
||||
before_filter :disable_customization
|
||||
|
@ -33,7 +34,6 @@ class ApplicationController < ActionController::Base
|
|||
before_filter :store_incoming_links
|
||||
before_filter :preload_json
|
||||
before_filter :check_xhr
|
||||
before_filter :set_locale
|
||||
before_filter :redirect_to_login_if_required
|
||||
|
||||
rescue_from Exception do |exception|
|
||||
|
|
Loading…
Reference in a new issue