--- loncom/interface/lonsyllabus.pm 2019/07/30 21:59:39 1.138.2.5 +++ loncom/interface/lonsyllabus.pm 2017/02/18 23:39:16 1.142 @@ -1,7 +1,7 @@ # The LearningOnline Network # Syllabus # -# $Id: lonsyllabus.pm,v 1.138.2.5 2019/07/30 21:59:39 raeburn Exp $ +# $Id: lonsyllabus.pm,v 1.142 2017/02/18 23:39:16 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -177,8 +177,8 @@ sub handler { $brcrum = &Apache::lonhtmlcommon::docs_breadcrumbs(undef,$crstype,undef,$title,1); } - $r->print(&Apache::lonwrapper::wrapper($r,$item,$brcrum,$env{'request.use_absolute'}, - undef,$is_pdf,&mt('Syllabus'))); + $r->print(&Apache::lonwrapper::wrapper($item,$brcrum,$env{'request.use_absolute'}, + undef,$is_pdf,undef,&mt('Syllabus'))); } } return OK; @@ -204,8 +204,8 @@ sub handler { $brcrum = &Apache::lonhtmlcommon::docs_breadcrumbs(undef,$crstype,undef,$title,1); } - $r->print(&Apache::lonwrapper::wrapper($r,$external,$brcrum,$env{'request.use_absolute'}, - $is_ext,$is_pdf,&mt('Syllabus'))); + $r->print(&Apache::lonwrapper::wrapper($external,$brcrum,$env{'request.use_absolute'}, + $is_ext,$is_pdf,undef,&mt('Syllabus'))); } return OK; } @@ -306,17 +306,12 @@ sub handler { if ($allowed) { #---------------------------------- Print External URL Syllabus Info if editing if ($target ne 'tex') { - my $hostname = &Apache::lonnet::hostname($homeserver); my $protocol = $Apache::lonnet::protocol{$homeserver}; $protocol = 'http' if ($protocol ne 'https'); - my $link = $r->uri; + my $link = $protocol.'://'.&Apache::lonnet::hostname($homeserver).$r->uri; if (($protocol eq 'https') && ($external =~ m{^http://})) { - unless (&Apache::lonnet::uses_sts()) { - $link .= '?usehttp=1'; - $protocol = 'http'; - } + $link .= '?usehttp=1'; } - $link = $protocol.'://'.$hostname.$link; $r->print('