Diff for /loncom/interface/lonsyllabus.pm between versions 1.138.2.5 and 1.144

version 1.138.2.5, 2019/07/30 21:59:39 version 1.144, 2018/12/27 18:14:25
Line 177  sub handler { Line 177  sub handler {
                         $brcrum =                          $brcrum =
                             &Apache::lonhtmlcommon::docs_breadcrumbs(undef,$crstype,undef,$title,1);                              &Apache::lonhtmlcommon::docs_breadcrumbs(undef,$crstype,undef,$title,1);
                     }                      }
                     $r->print(&Apache::lonwrapper::wrapper($r,$item,$brcrum,$env{'request.use_absolute'},                      $r->print(&Apache::lonwrapper::wrapper($item,$brcrum,$env{'request.use_absolute'},
                                                            undef,$is_pdf,&mt('Syllabus')));                                                             undef,$is_pdf,undef,&mt('Syllabus')));
                 }                  }
             }              }
             return OK;              return OK;
Line 204  sub handler { Line 204  sub handler {
                     $brcrum =                      $brcrum =
                         &Apache::lonhtmlcommon::docs_breadcrumbs(undef,$crstype,undef,$title,1);                          &Apache::lonhtmlcommon::docs_breadcrumbs(undef,$crstype,undef,$title,1);
                 }                  }
                 $r->print(&Apache::lonwrapper::wrapper($r,$external,$brcrum,$env{'request.use_absolute'},                  $r->print(&Apache::lonwrapper::wrapper($external,$brcrum,$env{'request.use_absolute'},
                                                        $is_ext,$is_pdf,&mt('Syllabus')));                                                         $is_ext,$is_pdf,undef,&mt('Syllabus')));
             }              }
             return OK;              return OK;
         }          }
Line 311  sub handler { Line 311  sub handler {
             $protocol = 'http' if ($protocol ne 'https');              $protocol = 'http' if ($protocol ne 'https');
             my $link = $r->uri;              my $link = $r->uri;
             if (($protocol eq 'https') && ($external =~ m{^http://})) {              if (($protocol eq 'https') && ($external =~ m{^http://})) {
                 unless (&Apache::lonnet::uses_sts()) {                  $link .= '?usehttp=1';
                     $link .= '?usehttp=1';                  $protocol = 'http';
                     $protocol = 'http';  
                 }  
             }              }
             $link = $protocol.'://'.$hostname.$link;              $link = $protocol.'://'.$hostname.$link;
             $r->print('<div class="LC_left_float">'              $r->print('<div class="LC_left_float">'
Line 1315  sub save_changes { Line 1313  sub save_changes {
                               &mt('An error occurred storing the external URL: [_1]',$putres).                                &mt('An error occurred storing the external URL: [_1]',$putres).
                               '</div>';                                '</div>';
                 }                  }
                 $is_ext = $external;  
             }              }
               $is_ext = $external;
         } else {          } else {
             $output = '<div class="LC_error">'.              $output = '<div class="LC_error">'.
                       &mt('External URL not saved -- invalid URL.').                        &mt('External URL not saved -- invalid URL.').

Removed from v.1.138.2.5  
changed lines
  Added in v.1.144


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