Diff for /loncom/interface/lonsyllabus.pm between versions 1.142 and 1.143

version 1.142, 2017/02/18 23:39:16 version 1.143, 2017/02/20 18:29:23
Line 308  sub handler { Line 308  sub handler {
         if ($target ne 'tex') {          if ($target ne 'tex') {
             my $protocol = $Apache::lonnet::protocol{$homeserver};              my $protocol = $Apache::lonnet::protocol{$homeserver};
             $protocol = 'http' if ($protocol ne 'https');              $protocol = 'http' if ($protocol ne 'https');
             my $link = $protocol.'://'.&Apache::lonnet::hostname($homeserver).$r->uri;              my $link = $r->uri;
             if (($protocol eq 'https') && ($external =~ m{^http://})) {              if (($protocol eq 'https') && ($external =~ m{^http://})) {
                 $link .= '?usehttp=1';                  $link .= '?usehttp=1';
                   $protocol = 'http';
             }              }
               $link = $protocol.'://'.&Apache::lonnet::hostname($homeserver).$link;
             $r->print('<div class="LC_left_float">'              $r->print('<div class="LC_left_float">'
                      .'<span class="LC_help_open_topic LC_info">'                       .'<span class="LC_help_open_topic LC_info">'
                      .'<span class="LC_info">'                       .'<span class="LC_info">'
Line 747  ENDSCRIPT Line 749  ENDSCRIPT
     if ($env{'form.only_body'}) {      if ($env{'form.only_body'}) {
         $args->{'only_body'} = 1;          $args->{'only_body'} = 1;
     }      }
       $args->{'hostname'} = $r->hostname();
     my $start_page =      my $start_page =
         &Apache::loncommon::start_page("Syllabus", $rss_link.$js,$args);          &Apache::loncommon::start_page("Syllabus", $rss_link.$js,$args);
     if ($start_page) {      if ($start_page) {

Removed from v.1.142  
changed lines
  Added in v.1.143


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>