--- loncom/interface/selfenroll.pm 2016/07/24 14:35:00 1.33
+++ loncom/interface/selfenroll.pm 2018/12/27 18:14:25 1.35
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Allow users to self-enroll in a course
#
-# $Id: selfenroll.pm,v 1.33 2016/07/24 14:35:00 raeburn Exp $
+# $Id: selfenroll.pm,v 1.35 2018/12/27 18:14:25 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -440,7 +440,6 @@ sub process_self_enroll {
}
my $instcid;
if ($selfenroll_registered) {
- my ($registered,$instsec,$message);
my ($registered,$instsec,$instcid,$message) = &check_registered($cdom,$cnum);
$usec = $instsec;
if (!$registered) {
@@ -665,9 +664,10 @@ sub pending_selfenrollment_form {
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 .= ''."\n".
''."\n".
''."\n".