[LON-CAPA-cvs] cvs: loncom /misc refresh_courseids_db.pl
raeburn
raeburn at source.lon-capa.org
Fri Jun 6 23:07:06 EDT 2014
raeburn Sat Jun 7 03:07:06 2014 EDT
Modified files:
/loncom/misc refresh_courseids_db.pl
Log:
- Fix typos
Index: loncom/misc/refresh_courseids_db.pl
diff -u loncom/misc/refresh_courseids_db.pl:1.17 loncom/misc/refresh_courseids_db.pl:1.18
--- loncom/misc/refresh_courseids_db.pl:1.17 Wed Dec 25 20:43:51 2013
+++ loncom/misc/refresh_courseids_db.pl Sat Jun 7 03:07:06 2014
@@ -1,7 +1,7 @@
#!/usr/bin/perl
# The LearningOnline Network
#
-# $Id: refresh_courseids_db.pl,v 1.17 2013/12/25 20:43:51 raeburn Exp $
+# $Id: refresh_courseids_db.pl,v 1.18 2014/06/07 03:07:06 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -410,12 +410,12 @@
sub commblock_constraints {
my ($cnum,$cdom,$reqdmajor,$reqdminor) = @_;
- my %comm_blocks = &Apache::lonnet::dump('commblock',$cdom,$cnum);
+ my %comm_blocks = &Apache::lonnet::dump('comm_block',$cdom,$cnum);
my $now = time;
if (keys(%comm_blocks) > 0) {
foreach my $block (keys(%comm_blocks)) {
if ($block =~ /^firstaccess____(.+)$/) {
- my ($major,$minor) = split(/\./,$Apache::lonnet::needsrelease{'course.commblock.timer'});
+ my ($major,$minor) = split(/\./,$Apache::lonnet::needsrelease{'course:commblock:timer'});
($reqdmajor,$reqdminor) = &update_reqd_loncaparev($major,$minor,$reqdmajor,$reqdminor);
last;
} elsif ($block =~ /^(\d+)____(\d+)$/) {
@@ -426,7 +426,7 @@
if (ref($comm_blocks{$block}{'blocks'}) eq 'HASH') {
if (ref($comm_blocks{$block}{'blocks'}{'docs'}) eq 'HASH') {
if (keys(%{$comm_blocks{$block}{'blocks'}{'docs'}}) > 0) {
- my ($major,$minor) = split(/\./,$Apache::lonnet::needsrelease{'course.commblock.docs'});
+ my ($major,$minor) = split(/\./,$Apache::lonnet::needsrelease{'course:commblock:docs'});
($reqdmajor,$reqdminor) = &update_reqd_loncaparev($major,$minor,$reqdmajor,$reqdminor);
last;
}
More information about the LON-CAPA-cvs
mailing list