Skip to content

Commit

Permalink
Make thumbnail_url and icon_url check for securehost to avoid mixed c…
Browse files Browse the repository at this point in the history
…ontent warnings
  • Loading branch information
Rory McNicholl committed Jun 18, 2018
1 parent 3122126 commit d8ccc29
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions perl_lib/EPrints/DataObj/Document.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1644,6 +1644,9 @@ sub thumbnail_url

if( $self->{session}->{preparing_static_page} )
{
if( $self->{session}->get_conf("securehost") ){
return $self->{session}->config( "https_url" ) . "/" . $path;
}
return $self->{session}->config( "http_url" ). "/" . $path;
}

Expand Down

0 comments on commit d8ccc29

Please sign in to comment.