[#557] Fix link_to_month to not escape the HTML arrow characters

This commit is contained in:
Eric Davis 2011-08-05 08:47:58 -07:00
parent 4d48a6b675
commit a7ab39dd31
1 changed files with 3 additions and 3 deletions

View File

@ -25,7 +25,7 @@ module CalendarsHelper
"#{month_name(target_month)}"
end
link_to_month(('« ' + name), target_year, target_month, options)
link_to_month(('« ' + h(name)), target_year, target_month, options)
end
def link_to_next_month(year, month, options={})
@ -41,10 +41,10 @@ module CalendarsHelper
"#{month_name(target_month)}"
end
link_to_month((name + ' »'), target_year, target_month, options)
link_to_month((h(name) + ' »'), target_year, target_month, options)
end
def link_to_month(link_name, year, month, options={})
link_to_content_update(h(link_name), params.merge(:year => year, :month => month))
link_to_content_update(link_name, params.merge(:year => year, :month => month))
end
end