Commit a7ab39dd authored by Eric Davis's avatar Eric Davis

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

parent 4d48a6b6
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment