summaryrefslogtreecommitdiffstats
path: root/app/controllers
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2009-02-21 15:44:00 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2009-02-21 15:44:00 +0000
commit79c074dbe59001233947db7a32afe04e11be0fad (patch)
treea4d1dac435bff2bbd401c3f57aa8b66f51194d4f /app/controllers
parent66afc8c054f2b1e7253d9e96d60622d6040bf48d (diff)
downloadredmine-79c074dbe59001233947db7a32afe04e11be0fad.tar.gz
redmine-79c074dbe59001233947db7a32afe04e11be0fad.zip
Fixes new setting name.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2504 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/attachments_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/attachments_controller.rb b/app/controllers/attachments_controller.rb
index 8c6346a5d..445ae3d12 100644
--- a/app/controllers/attachments_controller.rb
+++ b/app/controllers/attachments_controller.rb
@@ -26,7 +26,7 @@ class AttachmentsController < ApplicationController
if @attachment.is_diff?
@diff = File.new(@attachment.diskfile, "rb").read
render :action => 'diff'
- elsif @attachment.is_text? && @attachment.filesize <= Setting.setting_file_max_size_displayed.to_i.kilobyte
+ elsif @attachment.is_text? && @attachment.filesize <= Setting.file_max_size_displayed.to_i.kilobyte
@content = File.new(@attachment.diskfile, "rb").read
render :action => 'file'
else