A platform for community discussion. Free, open, simple.
FIX: Allow 404 pages to use the current theme
Robin Warda3e5a316740d
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rbindex 2d468017c2a..653ba952fc1 100644--- a/app/controllers/application_controller.rb+++ b/app/controllers/application_controller.rb@@ -192,7 +192,9 @@ class ApplicationController < ActionController::Baserender_json_error message, type: type, status: status_codeelsebegin+ # 404 pages won't have the session and theme_keys without these:current_user+ handle_themerescue Discourse::InvalidAccessreturn render plain: message, status: status_codeend