Skip to content

Commit

Permalink
Rolled back a theme optimization that wasn't
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.typosphere.org/typo/trunk@1642 820eb932-12ee-0310-9ca8-eeb645f39767
  • Loading branch information
pdcawley committed Feb 22, 2008
1 parent a270608 commit 25a86ec
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions app/controllers/theme_controller.rb
Expand Up @@ -38,10 +38,8 @@ def render_theme_item(type, file, mime = nil)
FileUtils.cp(src, "#{dst}.#{$$}")
FileUtils.ln("#{dst}.#{$$}", dst) rescue nil
FileUtils.rm("#{dst}.#{$$}", :force => true)
redirect_to(:ts => Time.now.to_i)
else
send_file(src, :type => mime, :disposition => 'inline', :stream => true)
end
end
send_file(src, :type => mime, :disposition => 'inline', :stream => true)
end

def mime_for(filename)
Expand Down

0 comments on commit 25a86ec

Please sign in to comment.