--- rat/lonwrapper.pm 2017/02/25 19:39:10 1.57 +++ rat/lonwrapper.pm 2017/03/08 02:51:18 1.58 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Wrapper for external and binary files as standalone resources # -# $Id: lonwrapper.pm,v 1.57 2017/02/25 19:39:10 raeburn Exp $ +# $Id: lonwrapper.pm,v 1.58 2017/03/08 02:51:18 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -164,7 +164,7 @@ sub handler { return OK if $r->header_only; my $url = $r->uri; - my ($is_ext,$brcrum,$absolute,$is_pdf,$exttool,$cdom,$cnum); + my ($is_ext,$brcrum,$absolute,$is_pdf,$exttool,$cdom,$cnum,$hostname); for ($url){ s|^/adm/wrapper||; @@ -204,16 +204,16 @@ sub handler { } } my $type = 'ext'; - my %ltitools; if ($exttool) { $type = 'tool'; - %ltitools = &Apache::lonnet::get_domain_ltitools($cdom); + } elsif (($url =~ /^http:/) && ($ENV{'SERVER_PORT'} == 443)) { + $hostname = $r->hostname(); } $r->print( &Apache::lonextresedit::display_editor($url,$env{'form.folderpath'}, $env{'form.symb'}, $env{'form.idx'},$type,$cdom, - $cnum,\%ltitools)); + $cnum,$hostname)); return OK; } elsif ($env{'form.folderpath'} =~ /^supplemental/) { my $crstype = &Apache::loncommon::course_type();