From cbd3a79122b4f052395ca79086bba87bc691ca4f Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Fri, 26 Sep 2014 18:58:55 +0800 Subject: [PATCH] fixed a small bug in sitemap --- app/views/sitemaps/sitemap_xml.xml.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/sitemaps/sitemap_xml.xml.erb b/app/views/sitemaps/sitemap_xml.xml.erb index 5528139..6b1dc1b 100644 --- a/app/views/sitemaps/sitemap_xml.xml.erb +++ b/app/views/sitemaps/sitemap_xml.xml.erb @@ -3,7 +3,7 @@ <% @site_in_use_locales.each do |locale| %> <%= request.protocol + request.host_with_port + "/?locale=#{locale.to_s}"%> - <%= @home.page_parts.desc(:updated_at).first.updated_at %> + <%= (@home.page_parts.desc(:updated_at).first.updated_at rescue @home.updated_at) %> 0.5 <% end %>