--- loncom/interface/loncommon.pm 2018/04/24 13:40:32 1.1314 +++ loncom/interface/loncommon.pm 2018/04/24 14:05:22 1.1315 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # a pile of common routines # -# $Id: loncommon.pm,v 1.1314 2018/04/24 13:40:32 raeburn Exp $ +# $Id: loncommon.pm,v 1.1315 2018/04/24 14:05:22 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -2234,6 +2234,7 @@ sub import_crsauthor_form { } my @ordered = (); foreach my $file (sort { lc($a) cmp lc($b) } (keys(%{$files{$key}}))) { + next if ($file =~ /\.rights$/); if ($only) { my ($ext) = ($file =~ /\.([^.]+)$/); unless ($possexts{lc($ext)}) { @@ -2277,11 +2278,13 @@ sub import_crsauthor_form { unless ($possexts{lc($ext)}) { next; } + } else { + next if ($file =~ /\.rights$/); } push(@singledirfiles,$file); } if (@singledirfiles) { - $possdirs == 1; + $possdirs = 1; } } if (($possdirs == 1) && (@singledirfiles)) {