mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Check active themes for all requests
Previously, the list of active themes was only used in html views. Now we have theme modifiers, themes can affect .json routes.
This commit is contained in:
parent
4500928a39
commit
91fff746a4
@ -376,8 +376,7 @@ class ApplicationController < ActionController::Base
|
||||
end
|
||||
|
||||
def handle_theme
|
||||
return if request.xhr? || request.format == "json" || request.format == "js"
|
||||
return if request.method != "GET"
|
||||
return if request.format == "js"
|
||||
|
||||
resolve_safe_mode
|
||||
return if request.env[NO_CUSTOM]
|
||||
|
Loading…
Reference in New Issue
Block a user