--- loncom/interface/createaccount.pm 2019/07/29 13:54:02 1.72.4.2 +++ loncom/interface/createaccount.pm 2017/08/03 16:22:08 1.74 @@ -4,7 +4,7 @@ # kerberos, or SSO) or an e-mail address. Requests to use an e-mail address as # username may be processed automatically, or may be queued for approval. # -# $Id: createaccount.pm,v 1.72.4.2 2019/07/29 13:54:02 raeburn Exp $ +# $Id: createaccount.pm,v 1.74 2017/08/03 16:22:08 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -328,7 +328,7 @@ sub handler { &print_header($r,$start_page,$courseid,$pagetitle); my $now=time; if ((grep(/^login$/,@{$cancreate})) && (!grep(/^email$/,@{$cancreate}))) { - if (open(my $jsh,"<","$include/londes.js")) { + if (open(my $jsh,"<$include/londes.js")) { while(my $line = <$jsh>) { $r->print($line); } @@ -634,7 +634,7 @@ sub print_username_form { push(@posstypes,'default'); } $output .= '

'.&mt('Choose your affiliation at [_1]',$domdesc).'

'."\n". - '

'; foreach my $type (@posstypes) { my $name; @@ -648,11 +648,7 @@ sub print_username_form { } } } - my $checked; - if ($env{'form.type'} eq $type) { - $checked = ' checked="checked"'; - } - $output .= '