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

raeburn raeburn at source.lon-capa.org
Thu Jul 23 14:03:10 EDT 2020


raeburn		Thu Jul 23 18:03:10 2020 EDT

  Modified files:              
    /loncom/interface	lonclonecourse.pm 
  Log:
  - Rewrite src attributes for uploaded files in composite pages when cloning. 
  
  
Index: loncom/interface/lonclonecourse.pm
diff -u loncom/interface/lonclonecourse.pm:1.15 loncom/interface/lonclonecourse.pm:1.16
--- loncom/interface/lonclonecourse.pm:1.15	Wed Jul  1 20:08:54 2020
+++ loncom/interface/lonclonecourse.pm	Thu Jul 23 18:03:10 2020
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # routines for clone a course
 #
-# $Id: lonclonecourse.pm,v 1.15 2020/07/01 20:08:54 raeburn Exp $
+# $Id: lonclonecourse.pm,v 1.16 2020/07/23 18:03:10 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -108,7 +108,7 @@
 
 sub copyfile {
     my ($origcrsid,$newcrsid,$which)=@_;
-    unless ($which=~/\.sequence$/) {
+    unless ($which=~/\.(page|sequence)$/) {
 	return &writefile($newcrsid,$which,
 		      &readfile($origcrsid,$which));
     } else {




More information about the LON-CAPA-cvs mailing list