[LON-CAPA-cvs] cvs: loncom /interface loncreatecourse.pm
www
lon-capa-cvs@mail.lon-capa.org
Fri, 02 Jul 2004 00:27:44 -0000
www Thu Jul 1 20:27:44 2004 EDT
Modified files:
/loncom/interface loncreatecourse.pm
Log:
Toward Bug #3161 - dump course still kaputt, though.
Index: loncom/interface/loncreatecourse.pm
diff -u loncom/interface/loncreatecourse.pm:1.62 loncom/interface/loncreatecourse.pm:1.63
--- loncom/interface/loncreatecourse.pm:1.62 Thu Jul 1 17:54:24 2004
+++ loncom/interface/loncreatecourse.pm Thu Jul 1 20:27:44 2004
@@ -1,7 +1,7 @@
#meserver The LearningOnline Network
# Create a course
#
-# $Id: loncreatecourse.pm,v 1.62 2004/07/01 21:54:24 www Exp $
+# $Id: loncreatecourse.pm,v 1.63 2004/07/02 00:27:44 www Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -53,8 +53,8 @@
sub innercrsdirlist {
my ($courseid,$which,$path)=@_;
my $dirptr=16384;
- unless ($which) { $which=''; }
- unless ($path) { $path=''; }
+ unless ($which) { $which=''; } else { $which.='/'; }
+ unless ($path) { $path=''; } else { $path.='/'; }
my %crsdata=&Apache::lonnet::coursedescription($courseid);
my @listing=&Apache::lonnet::dirlist
($which,$crsdata{'domain'},$crsdata{'num'},
@@ -64,11 +64,11 @@
my @unpackline = split (/\&/,$_);
if ($unpackline[3]&$dirptr) {
# is a directory, recurse
- &innercrsdirlist($courseid,$which.'/'.$unpackline[0],
- $path.'/'.$unpackline[0]);
+ &innercrsdirlist($courseid,$which.$unpackline[0],
+ $path.$unpackline[0]);
} else {
# is a file, put into output
- push (@output,$path.'/'.$unpackline[0]);
+ push (@output,$path.$unpackline[0]);
}
}
}