##// END OF EJS Templates
Merged r16285 (#24199)....
Jean-Philippe Lang -
r15912:46e11396b80b
parent child
Show More
@@ -197,7 +197,7 class AttachmentsController < ApplicationController
197 197 end
198 198
199 199 def disposition(attachment)
200 if attachment.is_image? || attachment.is_pdf?
200 if attachment.is_pdf?
201 201 'inline'
202 202 else
203 203 'attachment'
@@ -443,7 +443,7 class RepositoriesController < ApplicationController
443 443 end
444 444
445 445 def disposition(path)
446 if Redmine::MimeType.is_type?('image', @path) || Redmine::MimeType.of(@path) == "application/pdf"
446 if Redmine::MimeType.of(@path) == "application/pdf"
447 447 'inline'
448 448 else
449 449 'attachment'
General Comments 0
You need to be logged in to leave comments. Login now