--- loncom/interface/createaccount.pm 2011/09/29 14:12:21 1.40.2.4
+++ loncom/interface/createaccount.pm 2010/11/29 15:12:25 1.42
@@ -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.4 2011/09/29 14:12:21 raeburn Exp $
+# $Id: createaccount.pm,v 1.42 2010/11/29 15:12:25 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -128,8 +128,7 @@ sub handler {
return OK;
} else {
$start_page =
- &Apache::loncommon::start_page($title,$js,
- {'no_inline_link' => 1,});
+ &Apache::loncommon::start_page($title,$js);
&print_header($r,$start_page,$courseid);
$r->print($output);
&print_footer($r);
@@ -137,8 +136,8 @@ sub handler {
}
}
$start_page =
- &Apache::loncommon::start_page($title,$js,
- {'no_inline_link' => 1,});
+ &Apache::loncommon::start_page($title,$js);
+
my %domconfig =
&Apache::lonnet::get_dom('configuration',['usercreation'],$domain);
my ($cancreate,$statustocreate) = &get_creation_controls($domain,$domconfig{'usercreation'});
@@ -285,7 +284,7 @@ sub selfenroll_crumbs {
}
my $last_crumb;
if ($desc ne '') {
- $last_crumb = &mt('Self-enroll in [_1]',"$desc");
+ $last_crumb = &mt('Self-enroll in [_1]',''.$desc.'');
} else {
$last_crumb = &mt('Self-enroll');
}
@@ -796,17 +795,6 @@ sub get_creation_controls {
if (ref($usercreation->{'cancreate'}) eq 'HASH') {
if (ref($usercreation->{'cancreate'}{'statustocreate'}) eq 'ARRAY') {
@statustocreate = @{$usercreation->{'cancreate'}{'statustocreate'}};
- if (@statustocreate == 0) {
- my ($othertitle,$usertypes,$types) =
- &Apache::loncommon::sorted_inst_types($domain);
- if (ref($types) eq 'ARRAY') {
- if (@{$types} == 0) {
- @statustocreate = ('default');
- }
- } else {
- @statustocreate = ('default');
- }
- }
} else {
@statustocreate = ('default');
my ($othertitle,$usertypes,$types) =
@@ -985,7 +973,7 @@ sub username_check {
}
}
if ($checkfail) {
- $msg = '