version 1.27.2.3, 2014/04/06 14:24:40
|
version 1.32, 2015/06/09 21:22:57
|
Line 221 sub handler {
|
Line 221 sub handler {
|
if ($sso_url eq '') { |
if ($sso_url eq '') { |
$sso_url = $login_path; |
$sso_url = $login_path; |
} |
} |
$missing_formitem = &mt('The link to the requested page could not be followed.')."\\n".&mt('The placeholder for the courseID is absent.'); |
$missing_formitem = &mt('The link to the requested page could not be followed.')."\n".&mt('The placeholder for the courseID is absent.'); |
|
&js_escape(\$missing_formitem); |
if ($knownuser) { |
if ($knownuser) { |
if (keys(%curr_role)) { |
if (keys(%curr_role)) { |
$r->print('<h3>'.&mt('Self-enrollment unavailable').'</h3>'. |
$r->print('<h3>'.&mt('Self-enrollment unavailable').'</h3>'. |
Line 349 sub enrollment_limit_check {
|
Line 350 sub enrollment_limit_check {
|
sub page_header { |
sub page_header { |
my ($r,$courseid,$js,$desc) = @_; |
my ($r,$courseid,$js,$desc) = @_; |
my $start_page = |
my $start_page = |
&Apache::loncommon::start_page('Self-enroll in a LON-CAPA course',$js, |
&Apache::loncommon::start_page('Self-enroll in a LON-CAPA course',$js); |
{'no_inline_link' => 1,}); |
|
$r->print($start_page); |
$r->print($start_page); |
&Apache::lonhtmlcommon::clear_breadcrumbs(); |
&Apache::lonhtmlcommon::clear_breadcrumbs(); |
&Apache::createaccount::selfenroll_crumbs($r,$courseid,$desc); |
&Apache::createaccount::selfenroll_crumbs($r,$courseid,$desc); |