mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Remove support for theme_var and theme_color_var fields
These are remnants of the old 'customization' system, and have been superseded by theme settings
This commit is contained in:
@@ -112,25 +112,6 @@ class RemoteTheme < ActiveRecord::Base
|
||||
end
|
||||
end
|
||||
|
||||
theme_info["fields"]&.each do |name, info|
|
||||
unless Hash === info
|
||||
info = {
|
||||
"target" => :common,
|
||||
"type" => :theme_var,
|
||||
"value" => info
|
||||
}
|
||||
end
|
||||
|
||||
if info["type"] == "color"
|
||||
info["type"] = :theme_color_var
|
||||
end
|
||||
|
||||
theme.set_field(target: info["target"] || :common,
|
||||
name: name,
|
||||
value: info["value"],
|
||||
type: info["type"] || :theme_var)
|
||||
end
|
||||
|
||||
Theme.targets.keys.each do |target|
|
||||
next if target == :settings || target == :translations
|
||||
ALLOWED_FIELDS.each do |field|
|
||||
|
||||
Reference in New Issue
Block a user