mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-10 17:36:33 +08:00
Merge pull request #685 from mlorb/ml_sci_1373
Fix bug with audit trail - ajax error [SCI-1373]
This commit is contained in:
commit
6e203d2f15
1 changed files with 5 additions and 1 deletions
|
@ -246,7 +246,11 @@ module ApplicationHelper
|
|||
if !prefix.empty? &&
|
||||
!prefix.include?('http://') &&
|
||||
!prefix.include?('https://')
|
||||
prefix = request.ssl? ? "https://#{prefix}" : "http://#{prefix}"
|
||||
prefix = if respond_to?(:request) && request.ssl?
|
||||
"https://#{prefix}"
|
||||
else
|
||||
"http://#{prefix}"
|
||||
end
|
||||
end
|
||||
|
||||
unless user.avatar(style) == '/images/icon_small/missing.png'
|
||||
|
|
Loading…
Reference in a new issue