Skip to content

Commit

Permalink
Only preview locales if we're using I18n.
Browse files Browse the repository at this point in the history
  • Loading branch information
eclubb committed Apr 9, 2011
1 parent b8de998 commit eb5fdb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/admin/news_items/_news_item.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<span class="preview">
<%= t('.published') %> <%= l(news_item.publish_date, :format => :short) %>
</span>
<% if ::Refinery::I18n.frontend_locales.many? and
<% if defined?(::Refinery::I18n) and ::Refinery::I18n.frontend_locales.many? and
(locales = news_item.translations.collect{|t| t.locale}).present? %>
<span class='preview'>
<% locales.each do |locale| %>
Expand Down

0 comments on commit eb5fdb7

Please sign in to comment.