A platform for community discussion. Free, open, simple.
DEV: Correct references to theme flags
David Taylor3723c6425755
diff --git a/config/locales/server.en.yml b/config/locales/server.en.ymlindex 65715d3f219..fd440ec3b60 100644--- a/config/locales/server.en.yml+++ b/config/locales/server.en.yml@@ -83,7 +83,7 @@ en:generic: An error occured while importing that themeabout_json: "Import Error: about.json does not exist, or is invalid"about_json_values: "about.json contains invalid values: %{errors}"- flag_values: "about.json flags contain invalid values: %{errors}"+ modifier_values: "about.json modifiers contain invalid values: %{errors}"git: "Error cloning git repository, access is denied or repository is not found"unpack_failed: "Failed to unpack file"file_too_big: "The uncompressed file is too big."diff --git a/spec/components/svg_sprite/svg_sprite_spec.rb b/spec/components/svg_sprite/svg_sprite_spec.rbindex a9614c55481..34e4d59b137 100644--- a/spec/components/svg_sprite/svg_sprite_spec.rb+++ b/spec/components/svg_sprite/svg_sprite_spec.rb@@ -142,7 +142,7 @@ describe SvgSprite doexpect(SvgSprite.all_icons([parent_theme.id])).to include("dragon")end- it 'includes icons defined in theme flags' do+ it 'includes icons defined in theme modifiers' dotheme = Fabricate(:theme)expect(SvgSprite.all_icons([theme.id])).not_to include("dragon")diff --git a/spec/lib/content_security_policy_spec.rb b/spec/lib/content_security_policy_spec.rbindex fa81698019c..593ae9d1c0c 100644--- a/spec/lib/content_security_policy_spec.rb+++ b/spec/lib/content_security_policy_spec.rb@@ -166,7 +166,7 @@ describe ContentSecurityPolicy doexpect(parse(theme_policy)['worker-src']).to_not include('from-theme.com')end- it 'can be extended by theme flags' do+ it 'can be extended by theme modifiers' dopolicy # call this first to make sure further actions clear the cachetheme.theme_modifier_set.csp_extensions = ["script-src: https://from-theme-flag.script", "worker-src: from-theme-flag.worker"]