Diff for /loncom/interface/loncommon.pm between versions 1.1314 and 1.1315

version 1.1314, 2018/04/24 13:40:32 version 1.1315, 2018/04/24 14:05:22
Line 2234  sub import_crsauthor_form { Line 2234  sub import_crsauthor_form {
                 }                  }
                 my @ordered = ();                  my @ordered = ();
                 foreach my $file (sort { lc($a) cmp lc($b) } (keys(%{$files{$key}}))) {                  foreach my $file (sort { lc($a) cmp lc($b) } (keys(%{$files{$key}}))) {
                       next if ($file =~ /\.rights$/);
                     if ($only) {                      if ($only) {
                         my ($ext) = ($file =~ /\.([^.]+)$/);                          my ($ext) = ($file =~ /\.([^.]+)$/);
                         unless ($possexts{lc($ext)}) {                          unless ($possexts{lc($ext)}) {
Line 2277  sub import_crsauthor_form { Line 2278  sub import_crsauthor_form {
                 unless ($possexts{lc($ext)}) {                  unless ($possexts{lc($ext)}) {
                     next;                      next;
                 }                  }
               } else {
                   next if ($file =~ /\.rights$/);
             }              }
             push(@singledirfiles,$file);              push(@singledirfiles,$file);
         }          }
         if (@singledirfiles) {          if (@singledirfiles) {
             $possdirs == 1;              $possdirs = 1;
         }          }
     }      }
     if (($possdirs == 1) && (@singledirfiles)) {      if (($possdirs == 1) && (@singledirfiles)) {

Removed from v.1.1314  
changed lines
  Added in v.1.1315


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