diff --git a/app/views/issues/show.rhtml b/app/views/issues/show.rhtml index 759c54f5..c8fd5c7d 100644 --- a/app/views/issues/show.rhtml +++ b/app/views/issues/show.rhtml @@ -92,7 +92,7 @@ end %>
<% if authorize_for('issues', 'add_attachment') %> - <% form_tag ({ :controller => 'issues', :action => 'add_attachment', :id => @issue }, :multipart => true, :class => "tabular") do %> + <% form_tag({ :controller => 'issues', :action => 'add_attachment', :id => @issue }, :multipart => true, :class => "tabular") do %>

<%= file_field_tag 'attachments[]', :size => 30 %> (<%= l(:label_max_size) %>: <%= number_to_human_size(Setting.attachment_max_size.to_i.kilobytes) %>)

diff --git a/app/views/my/blocks/_news.rhtml b/app/views/my/blocks/_news.rhtml index 4c7e2729..d86cced9 100644 --- a/app/views/my/blocks/_news.rhtml +++ b/app/views/my/blocks/_news.rhtml @@ -1,6 +1,6 @@

<%=l(:label_news_latest)%>

-<%= render (:partial => 'news/news', +<%= render(:partial => 'news/news', :collection => News.find(:all, :limit => 10, :order => "#{News.table_name}.created_on DESC",