[LON-CAPA-cvs] cvs: loncom(version_2_11_X) /interface selfenroll.pm
raeburn
raeburn at source.lon-capa.org
Thu Jan 9 12:36:10 EST 2020
raeburn Thu Jan 9 17:36:10 2020 EDT
Modified files: (Branch: version_2_11_X)
/loncom/interface selfenroll.pm
Log:
- For 2.11
Backport 1.35
Index: loncom/interface/selfenroll.pm
diff -u loncom/interface/selfenroll.pm:1.27.2.5 loncom/interface/selfenroll.pm:1.27.2.6
--- loncom/interface/selfenroll.pm:1.27.2.5 Sun Aug 7 01:40:55 2016
+++ loncom/interface/selfenroll.pm Thu Jan 9 17:36:09 2020
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Allow users to self-enroll in a course
#
-# $Id: selfenroll.pm,v 1.27.2.5 2016/08/07 01:40:55 raeburn Exp $
+# $Id: selfenroll.pm,v 1.27.2.6 2020/01/09 17:36:09 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -665,9 +665,10 @@
if ($buttontext eq '') {
$buttontext = &mt('Complete my enrollment');
}
+ my $hostname = &Apache::lonnet::hostname($lonhost);
my $protocol = $Apache::lonnet::protocol{$lonhost};
$protocol = 'http' if ($protocol ne 'https');
- my $enroller = $protocol.'://'.&Apache::lonnet::hostname($lonhost).'/cgi-bin/enrollqueued.pl';
+ my $enroller = $protocol.'://'.$hostname.'/cgi-bin/enrollqueued.pl';
$output .= '<input type="hidden" name="enroller" value="'.$enroller.'" />'."\n".
'<input type="hidden" name="token" value="'.$token.'" />'."\n".
'<input type="submit" name="validate" value="'.$buttontext.'" />'."\n".
More information about the LON-CAPA-cvs
mailing list