[LON-CAPA-cvs] cvs: loncom / lond
raeburn
lon-capa-cvs@mail.lon-capa.org
Fri, 31 Dec 2004 01:24:14 -0000
raeburn Thu Dec 30 20:24:14 2004 EDT
Modified files:
/loncom lond
Log:
Backward compatibility with lonnet::flushcourselogs() in LON-CAPA 1.2.X. Institutional code no longer dropped from course's record in nohist_courseids.db on a 1.3.1 library server when course was accessed from a 1.2.X server.
Index: loncom/lond
diff -u loncom/lond:1.270 loncom/lond:1.271
--- loncom/lond:1.270 Tue Dec 28 10:09:38 2004
+++ loncom/lond Thu Dec 30 20:24:14 2004
@@ -2,7 +2,7 @@
# The LearningOnline Network
# lond "LON Daemon" Server (port "LOND" 5663)
#
-# $Id: lond,v 1.270 2004/12/28 15:09:38 matthew Exp $
+# $Id: lond,v 1.271 2004/12/31 01:24:14 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -58,7 +58,7 @@
my $status='';
my $lastlog='';
-my $VERSION='$Revision: 1.270 $'; #' stupid emacs
+my $VERSION='$Revision: 1.271 $'; #' stupid emacs
my $remoteVERSION;
my $currenthostid="default";
my $currentdomainid;
@@ -3129,7 +3129,8 @@
my $hashref = &tie_domain_hash($udom, "nohist_courseids", &GDBM_WRCREAT());
if ($hashref) {
foreach my $pair (@pairs) {
- my ($key,$courseinfo) = split(/=/,$pair);
+ my ($key,$courseinfo) = split(/=/,$pair,2);
+ $courseinfo =~ s/=/:/g;
$hashref->{$key}=$courseinfo.':'.$now;
}
if (untie(%$hashref)) {