diff --git a/app/views/shared/_header.html.erb b/app/views/shared/_header.html.erb index 92d717b5..fc51b083 100755 --- a/app/views/shared/_header.html.erb +++ b/app/views/shared/_header.html.erb @@ -17,7 +17,11 @@
<%= link_to (current_user ? home_page : root_path), class: "header-brand" do %> - <%= image_tag(logo_image, class: "header-brand-img", alt:"") %> + <% begin %> + <%= image_tag(logo_image, class: "header-brand-img", alt:"") %> + <% rescue %> + <%= t("administrator.site_settings.branding.invalid") %> + <% end %> <% end %>
diff --git a/config/locales/en.yml b/config/locales/en.yml index 6b01adc4..ee55901d 100755 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -42,6 +42,7 @@ en: info: Change the branding image that appears in the top left corner placeholder: Image Url... title: Branding Image + invalid: Invalid URL cache: info: Clears the stored provider cache which forces a new request for the updated info title: Clear Provider Cache