[LON-CAPA-cvs] cvs: loncom(GCI_3) /interface lonrequestcourse.pm
raeburn
raeburn@source.lon-capa.org
Thu, 25 Feb 2010 05:01:25 -0000
raeburn Thu Feb 25 05:01:25 2010 EDT
Modified files: (Branch: GCI_3)
/loncom/interface lonrequestcourse.pm
Log:
- Customization for GCI_3
- Automatically set course config to include suppress_tries in printouts for
GCI Concept Tests.
Index: loncom/interface/lonrequestcourse.pm
diff -u loncom/interface/lonrequestcourse.pm:1.41.2.4 loncom/interface/lonrequestcourse.pm:1.41.2.5
--- loncom/interface/lonrequestcourse.pm:1.41.2.4 Thu Feb 4 21:01:30 2010
+++ loncom/interface/lonrequestcourse.pm Thu Feb 25 05:01:25 2010
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Request a course
#
-# $Id: lonrequestcourse.pm,v 1.41.2.4 2010/02/04 21:01:30 raeburn Exp $
+# $Id: lonrequestcourse.pm,v 1.41.2.5 2010/02/25 05:01:25 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -3003,6 +3003,10 @@
my %parmresult =
&store_crsparms($dom,$cnum,$now,$accessstart,$accessend);
&Apache::londocsgci::setdefaults();
+ my %crsenvhash = (
+ suppress_tries => 'yes',
+ );
+ my $putresult = &Apache::lonnet::put('environment',\%crsenvhash,$dom,$cnum);
if ($env{'form.concepttest'} eq 'defchosen') {
$output .= '<br />';
my $error = &Apache::londocsgci::store($caller,$dom,$cnum);