@@ -197,7 +197,7 class AttachmentsController < ApplicationController | |||
|
197 | 197 | end |
|
198 | 198 | |
|
199 | 199 | def disposition(attachment) |
|
200 |
if attachment. |
|
|
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 |
|
|
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