diff options
author | Jochen Topf <jochen@topf.org> | 2014-05-16 17:23:00 +0200 |
---|---|---|
committer | Jochen Topf <jochen@topf.org> | 2014-05-16 17:23:00 +0200 |
commit | b086da01dccf250ff0ae79a2c309d376c2ba81e5 (patch) | |
tree | b3e20f70c1e8cbff286d7d164c6c67026c59289a /web/views | |
parent | 7149414ef06745440325f834e88afd8adaf9dfac (diff) | |
download | taginfo-b086da01dccf250ff0ae79a2c309d376c2ba81e5.tar taginfo-b086da01dccf250ff0ae79a2c309d376c2ba81e5.tar.gz |
Bugfix: When language name isn't available set it to empty string.
Diffstat (limited to 'web/views')
-rw-r--r-- | web/views/comparison.erb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/views/comparison.erb b/web/views/comparison.erb index 6bce915..af69256 100644 --- a/web/views/comparison.erb +++ b/web/views/comparison.erb @@ -54,7 +54,7 @@ <% @data.each_with_index do |data, num| %> <td class="data item<%= num %> wiki"> <p><b><%= data[:value].nil? ? h(t.pages.key.wiki_pages.title) : h(t.pages.tag.wiki_pages.title) %>:</b></p> - <%= data[:wiki_pages].map{ |lang| '<span class="lang" title="' + ::Language[lang].native_name + '">' + lang + '</span>' }.join(' ') %> + <%= data[:wiki_pages].map{ |lang| '<span class="lang" title="' + ::Language[lang].native_name.to_s + '">' + lang + '</span>' }.join(' ') %> </td> <% end %> </tr> |