A platform for community discussion. Free, open, simple.
FIX: Do not display broken image on crawler/print view (#6575)
David Taylor37fb8fc0e72c
diff --git a/app/views/layouts/crawler.html.erb b/app/views/layouts/crawler.html.erbindex 8a485633cc9..914de1f1b0d 100644--- a/app/views/layouts/crawler.html.erb+++ b/app/views/layouts/crawler.html.erb@@ -22,7 +22,13 @@<body class="crawler"><%= theme_lookup("header") %><header>- <a href="<%= path "/" %>"><img src="<%=SiteSetting.logo_url%>" alt="<%=SiteSetting.title%>" id="site-logo" style="max-width: 150px;"></a>+ <a href="<%= path "/" %>">+ <%- if SiteSetting.logo_url.present? %>+ <img src="<%=SiteSetting.logo_url%>" alt="<%=SiteSetting.title%>" id="site-logo" style="max-width: 150px;">+ <%- else %>+ <h1><%=SiteSetting.title%></h1>+ <% end %>+ </a></header><div id="main-outlet" class="wrap"><%= yield %>