Correction on rss builder to better manage region
This commit is contained in:
parent
8591f4f786
commit
4a4cce9978
@ -26,7 +26,8 @@ xml.rdf :RDF,
|
||||
'xmlns:georss' => 'http://www.georss.org/georss' do
|
||||
xml.channel 'rdf:about' => root_url do
|
||||
title = t 'layouts.application.title'
|
||||
title += " [#{Region.find(session[:region]).name}]" if session[:region]
|
||||
region = Region.find_by id: session[:region]
|
||||
title += " [#{region.name}]" if region
|
||||
xml.title title
|
||||
xml.description t 'layouts.application.subtitle'
|
||||
xml.link root_url
|
||||
|
Loading…
Reference in New Issue
Block a user