Diff for /loncom/interface/lonsyllabus.pm between versions 1.56 and 1.57

version 1.56, 2006/10/23 20:25:45 version 1.57, 2007/03/02 23:17:58
Line 192  sub handler { Line 192  sub handler {
           $r->print('<p>'.            $r->print('<p>'.
 &Apache::loncommon::help_open_topic('Uploaded_Templates_TextBoxes','Help with filling in text boxes').'</p><p>'.&mt('This syllabus can be publicly viewed at')  &Apache::loncommon::help_open_topic('Uploaded_Templates_TextBoxes','Help with filling in text boxes').'</p><p>'.&mt('This syllabus can be publicly viewed at')
     .' <tt>http://'.      .' <tt>http://'.
     $Apache::lonnet::hostname{$homeserver}.$r->uri.'</tt>'.      &Apache::lonnet::hostname($homeserver).$r->uri.'</tt>'.
                &Apache::loncommon::help_open_topic('Syllabus_ExtLink').'</p>'.                 &Apache::loncommon::help_open_topic('Syllabus_ExtLink').'</p>'.
           '<p>'.&mt('You can specify an external URL as Syllabus in the [_1].','<a href="/adm/parmset?action=crsenv">'.&mt('Course Parameters').'</a>').'</p>'.            '<p>'.&mt('You can specify an external URL as Syllabus in the [_1].','<a href="/adm/parmset?action=crsenv">'.&mt('Course Parameters').'</a>').'</p>'.
   '<p><a href="'.$r->uri.'?forcestudent=1"><font size="+1">'.    '<p><a href="'.$r->uri.'?forcestudent=1"><font size="+1">'.
Line 225  sub handler { Line 225  sub handler {
   my $host = $1;    my $host = $1;
                           my $remainder=$2;                            my $remainder=$2;
 # remove the hostname from internal URLs  # remove the hostname from internal URLs
           foreach my $possible_host (keys(%Apache::lonnet::hostname)) {    my $hostname = &Apache::lonnet::hostname($host);
                               if ($possible_host =~    my %all_hostnames = &Apache::lonnet::all_hostnames();
      /\Q$Apache::lonnet::hostname{$host}\E/i) {            foreach my $possible_host (keys(%all_hostnames)) {
                                 if ($possible_host =~ /\Q$hostname\E/i) {
          $url=$remainder;           $url=$remainder;
       }        }
           }            }

Removed from v.1.56  
changed lines
  Added in v.1.57


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