[LON-CAPA-cvs] cvs: loncom(loncapaMITrelate_1) /interface createaccount.pm
raeburn
raeburn at source.lon-capa.org
Fri Mar 2 15:44:25 EST 2012
raeburn Fri Mar 2 20:44:25 2012 EDT
Modified files: (Branch: loncapaMITrelate_1)
/loncom/interface createaccount.pm
Log:
- Customization for MITrelate
- Replace courseID for self-enrollment with courseID for Mechanics Online
in the case where users access sign-up from a cached version of:
http://relate.mit.edu/physicscourse
Index: loncom/interface/createaccount.pm
diff -u loncom/interface/createaccount.pm:1.40.2.5.2.12 loncom/interface/createaccount.pm:1.40.2.5.2.13
--- loncom/interface/createaccount.pm:1.40.2.5.2.12 Thu Mar 1 01:11:29 2012
+++ loncom/interface/createaccount.pm Fri Mar 2 20:44:25 2012
@@ -3,7 +3,7 @@
# institutional log-in ID (institutional authentication required - localauth
# or kerberos) or an e-mail address.
#
-# $Id: createaccount.pm,v 1.40.2.5.2.12 2012/03/01 01:11:29 raeburn Exp $
+# $Id: createaccount.pm,v 1.40.2.5.2.13 2012/03/02 20:44:25 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -102,6 +102,9 @@
my ($js,$courseid,$title);
if (defined($env{'form.courseid'})) {
$courseid = &validate_course($env{'form.courseid'});
+ if ($courseid eq 'relate_3H121116c19344ff3relatel1') {
+ $courseid = 'relate_3e100973b27484f2drelatel1';
+ }
}
if ($courseid ne '') {
$js = &catreturn_js();
More information about the LON-CAPA-cvs
mailing list