mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 08:09:33 +08:00
FIX: Reset watched site settings when default locale changes
Some site settings (e.g. `unicode_username_character_whitelist`) depend on the default locale, so we need to reset the watched settings when the locale changes.
This commit is contained in:
parent
4aefe589de
commit
f82576deea
|
@ -112,6 +112,7 @@ class SiteSetting < ActiveRecord::Base
|
|||
end
|
||||
|
||||
WATCHED_SETTINGS ||= [
|
||||
:default_locale,
|
||||
:attachment_content_type_blacklist,
|
||||
:attachment_filename_blacklist,
|
||||
:unicode_username_character_whitelist,
|
||||
|
|
Loading…
Reference in New Issue
Block a user