diff --git a/app/views/layouts/default.rhtml b/app/views/layouts/default.rhtml
index 63a49647..3464c723 100644
--- a/app/views/layouts/default.rhtml
+++ b/app/views/layouts/default.rhtml
@@ -39,7 +39,7 @@
- <%= render(:file => 'svg_logo') %>
+ <%= render(:file => 'svg_logo') if @controller.xhtml_enabled? %>
<%- if @page and (@page.name == 'HomePage') and %w( show published print ).include?(@action_name) -%>
<%= h(@web.name) + (@show_diff ? ' (changes)' : '') %>
<%- elsif @web -%>