diff --git a/app/components/layout/social_component.rb b/app/components/layout/social_component.rb index 3dd944c0e..779b47cc2 100644 --- a/app/components/layout/social_component.rb +++ b/app/components/layout/social_component.rb @@ -26,6 +26,6 @@ class Layout::SocialComponent < ApplicationComponent end def footer_content_block - content_block("footer", I18n.locale) + content_block("footer") end end diff --git a/app/components/layout/top_links_component.rb b/app/components/layout/top_links_component.rb index ad45468c5..7c5c17f88 100644 --- a/app/components/layout/top_links_component.rb +++ b/app/components/layout/top_links_component.rb @@ -8,6 +8,6 @@ class Layout::TopLinksComponent < ApplicationComponent private def top_links_content_block - content_block("top_links", I18n.locale) + content_block("top_links") end end diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 7f23d83b6..b14baa148 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -48,7 +48,7 @@ module ApplicationHelper SiteCustomization::Image.image_path_for(filename) || filename end - def content_block(name, locale) + def content_block(name, locale = I18n.locale) SiteCustomization::ContentBlock.block_for(name, locale) end diff --git a/app/views/shared/_subnavigation.html.erb b/app/views/shared/_subnavigation.html.erb index 463122a8c..b8aa0fc84 100644 --- a/app/views/shared/_subnavigation.html.erb +++ b/app/views/shared/_subnavigation.html.erb @@ -1,6 +1,6 @@