[LON-CAPA-cvs] cvs: loncom /interface lonsyllabus.pm

raeburn raeburn at source.lon-capa.org
Thu Jan 9 10:18:40 EST 2014


raeburn		Thu Jan  9 15:18:40 2014 EDT

  Modified files:              
    /loncom/interface	lonsyllabus.pm 
  Log:
  - URL for "externalsyllabus" (backwards compatibility with pre-2.11 when using
    uploaded file for syllabus needs to be constructed using server's hostname 
    instead of hostID.
  
  
Index: loncom/interface/lonsyllabus.pm
diff -u loncom/interface/lonsyllabus.pm:1.135 loncom/interface/lonsyllabus.pm:1.136
--- loncom/interface/lonsyllabus.pm:1.135	Thu Oct  3 12:45:14 2013
+++ loncom/interface/lonsyllabus.pm	Thu Jan  9 15:18:40 2014
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Syllabus
 #
-# $Id: lonsyllabus.pm,v 1.135 2013/10/03 12:45:14 raeburn Exp $
+# $Id: lonsyllabus.pm,v 1.136 2014/01/09 15:18:40 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1503,7 +1503,7 @@
     if ($home ne 'no_host') {
         my $protocol = $Apache::lonnet::protocol{$home};
         $protocol = 'http' if ($protocol ne 'https');
-        return $protocol.'://'.$home;
+        return $protocol.'://'.&Apache::lonnet::hostname($home);
     }
     return;
 }




More information about the LON-CAPA-cvs mailing list