Diff for /loncom/interface/lonmenu.pm between versions 1.492 and 1.493

version 1.492, 2018/05/10 04:06:13 version 1.493, 2018/12/27 20:10:31
Line 605  sub secondary_menu { Line 605  sub secondary_menu {
                 }                  }
                 if ($env{'course.'.$env{'request.course.id'}.'.externalsyllabus'} =~ m{^http://}) {                  if ($env{'course.'.$env{'request.course.id'}.'.externalsyllabus'} =~ m{^http://}) {
                     if (($ENV{'SERVER_PORT'} == 443) || ($env{'request.use_absolute'} =~ m{^https://})) {                      if (($ENV{'SERVER_PORT'} == 443) || ($env{'request.use_absolute'} =~ m{^https://})) {
                         unless ($$menuitem[0] =~ m{^https?://}) {                          unless (&Apache::lonnet::uses_sts()) {
                             $$menuitem[0] = 'http://'.$ENV{'SERVER_NAME'}.$$menuitem[0];                              unless ($$menuitem[0] =~ m{^https?://}) {
                         }                                  $$menuitem[0] = 'http://'.$ENV{'SERVER_NAME'}.$$menuitem[0];
                         unless ($$menuitem[0] =~ /(\&|\?)usehttp=1/) {                              }
                             $$menuitem[0] .= (($$menuitem[0]=~/\?/) ? '&' : '?').'usehttp=1';                              unless ($$menuitem[0] =~ /(\&|\?)usehttp=1/) {
                                   $$menuitem[0] .= (($$menuitem[0]=~/\?/) ? '&' : '?').'usehttp=1';
                               }
                         }                          }
                     }                      }
                 }                  }
Line 2125  sub utilityfunctions { Line 2127  sub utilityfunctions {
         $ltitarget = $env{'request.lti.target'};          $ltitarget = $env{'request.lti.target'};
     }      }
   
       my $annotateurl = '/adm/annotation';
       if ($httphost) {
           $annotateurl = '/adm/annotations';
       }
     my $hostvar = '      my $hostvar = '
 function setLCHost() {  function setLCHost() {
     var lcHostname="";      var lcHostname="";
Line 2258  function annotate() { Line 2264  function annotate() {
    annotator.document.write(     annotator.document.write(
    '$start_page_annotate'     '$start_page_annotate'
   +"<form name='goannotate' target='Annotator' method='post' "    +"<form name='goannotate' target='Annotator' method='post' "
   +"action='/adm/annotations'>"    +"action='$annotateurl'>"
   +"<input type='hidden' name='symbnew' value='"+currentSymb+"' />"    +"<input type='hidden' name='symbnew' value='"+currentSymb+"' />"
   +"<\\/form>"    +"<\\/form>"
   +'$end_page_annotate');    +'$end_page_annotate');

Removed from v.1.492  
changed lines
  Added in v.1.493


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