[LON-CAPA-cvs] cvs: loncom /interface loncreatecourse.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Fri, 04 Nov 2005 21:17:18 -0000
albertel Fri Nov 4 16:17:18 2005 EDT
Modified files:
/loncom/interface loncreatecourse.pm
Log:
- stop copying the discussion db when cloning
Index: loncom/interface/loncreatecourse.pm
diff -u loncom/interface/loncreatecourse.pm:1.81 loncom/interface/loncreatecourse.pm:1.82
--- loncom/interface/loncreatecourse.pm:1.81 Mon Jul 11 13:52:19 2005
+++ loncom/interface/loncreatecourse.pm Fri Nov 4 16:17:18 2005
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Create a course
#
-# $Id: loncreatecourse.pm,v 1.81 2005/07/11 17:52:19 raeburn Exp $
+# $Id: loncreatecourse.pm,v 1.82 2005/11/04 21:17:18 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -214,10 +214,13 @@
sub copydbfiles {
my ($origcrsid,$newcrsid)=@_;
+
+ my ($origcrs_discussion) = ($origcrsid=~m|^/(.*)|);
+ $origcrs_discussion=~s|/|_|g;
foreach (&crsdirlist($origcrsid)) {
if ($_=~/\.db$/) {
unless
- ($_=~/^(nohist\_|discussiontimes|classlist|versionupdate|resourcedata)/) {
+ ($_=~/^(nohist\_|discussiontimes|classlist|versionupdate|resourcedata|\Q$origcrs_discussion\E)/) {
©db($origcrsid,$newcrsid,$_);
my $histfile=$_;
$histfile=~s/\.db$/\.hist/;