mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Revert "FIX: refresh
should work with shadowed globals"
This reverts commit 226f4b5bd9
.
This commit is contained in:
parent
226f4b5bd9
commit
5d6f6c4887
@ -200,9 +200,11 @@ module SiteSettingExtension
|
|||||||
|
|
||||||
if deletions.length > 0 || changes.length > 0
|
if deletions.length > 0 || changes.length > 0
|
||||||
changes.each do |name, val|
|
changes.each do |name, val|
|
||||||
|
next if shadowed_settings.include?(name)
|
||||||
current[name] = val
|
current[name] = val
|
||||||
end
|
end
|
||||||
deletions.each do |name,val|
|
deletions.each do |name,val|
|
||||||
|
next if shadowed_settings.include?(name)
|
||||||
current[name] = defaults[name]
|
current[name] = defaults[name]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user