Diff for /loncom/interface/lonclonecourse.pm between versions 1.15 and 1.18

version 1.15, 2020/07/01 20:08:54 version 1.18, 2022/03/25 06:42:17
Line 108  sub rewritefile { Line 108  sub rewritefile {
   
 sub copyfile {  sub copyfile {
     my ($origcrsid,$newcrsid,$which)=@_;      my ($origcrsid,$newcrsid,$which)=@_;
     unless ($which=~/\.sequence$/) {      unless ($which=~/\.(page|sequence)$/) {
  return &writefile($newcrsid,$which,   return &writefile($newcrsid,$which,
       &readfile($origcrsid,$which));        &readfile($origcrsid,$which));
     } else {      } else {
Line 230  sub copydb { Line 230  sub copydb {
                 return @info;                  return @info;
             }              }
         }          }
       } elsif ($which eq 'lti') {
           foreach my $key (keys(%data)) {
               if (ref($data{$key}) eq 'HASH') {
                   if (exists($data{$key}{'usable'})) {
                       delete($data{$key}{'usable'});
                   }
               }
           }
     }      }
     my $putres = &Apache::lonnet::put      my $putres = &Apache::lonnet::put
                      ($which,\%data,$newcrsdata{'domain'},$newcrsdata{'num'});                       ($which,\%data,$newcrsdata{'domain'},$newcrsdata{'num'});

Removed from v.1.15  
changed lines
  Added in v.1.18


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