version 1.52.2.2, 2016/10/23 20:55:41
|
version 1.52.2.2.6.1, 2020/04/06 22:32:32
|
Line 656 sub update_request_queue {
|
Line 656 sub update_request_queue {
|
$beneficiary = 'enroller'; |
$beneficiary = 'enroller'; |
$cid = $env{'request.course.id'}; |
$cid = $env{'request.course.id'}; |
$crstype = lc(&Apache::loncommon::course_type()); |
$crstype = lc(&Apache::loncommon::course_type()); |
$firsturl = &course_portal_url($cnum,$cdom); |
$firsturl = &Apache::lonnet::course_portal_url($cnum,$cdom); |
%requesthash = &Apache::lonnet::dump($namespace,$cdom,$cnum); |
%requesthash = &Apache::lonnet::dump($namespace,$cdom,$cnum); |
$access_start = $env{'course.'.$cid.'.internal.selfenroll_start_access'}; |
$access_start = $env{'course.'.$cid.'.internal.selfenroll_start_access'}; |
$access_end = $env{'course.'.$cid.'.internal.selfenroll_end_access'}; |
$access_end = $env{'course.'.$cid.'.internal.selfenroll_end_access'}; |
Line 685 sub update_request_queue {
|
Line 685 sub update_request_queue {
|
} |
} |
} |
} |
my $domconfiguser = &Apache::lonnet::get_domainconfiguser($cdom); |
my $domconfiguser = &Apache::lonnet::get_domainconfiguser($cdom); |
$firsturl = &course_portal_url($domconfiguser,$cdom); |
$firsturl = &Apache::lonnet::course_portal_url($domconfiguser,$cdom); |
$approvedmsg = [{ |
$approvedmsg = [{ |
mt => 'Your request for Authoring Space has been approved.', |
mt => 'Your request for Authoring Space has been approved.', |
}, |
}, |
Line 710 sub update_request_queue {
|
Line 710 sub update_request_queue {
|
} |
} |
} |
} |
my $domconfiguser = &Apache::lonnet::get_domainconfiguser($cdom); |
my $domconfiguser = &Apache::lonnet::get_domainconfiguser($cdom); |
$firsturl = &course_portal_url($domconfiguser,$cdom); |
$firsturl = &Apache::lonnet::course_portal_url($domconfiguser,$cdom); |
$approvedmsg = [{ |
$approvedmsg = [{ |
mt => 'Your request for a LON-CAPA account has been approved.', |
mt => 'Your request for a LON-CAPA account has been approved.', |
}, |
}, |
Line 985 sub update_request_queue {
|
Line 985 sub update_request_queue {
|
} else { |
} else { |
$approvedmsg = $approvalmsg{'course'}; |
$approvedmsg = $approvalmsg{'course'}; |
} |
} |
my $firsturl = &course_portal_url($cnum,$cdom); |
my $firsturl = &Apache::lonnet::course_portal_url($cnum,$cdom); |
if (ref($approvedmsg) eq 'ARRAY') { |
if (ref($approvedmsg) eq 'ARRAY') { |
if (ref($approvedmsg->[1]) eq 'HASH') { |
if (ref($approvedmsg->[1]) eq 'HASH') { |
$approvedmsg->[1]->{'args'} = [$firsturl]; |
$approvedmsg->[1]->{'args'} = [$firsturl]; |
Line 1569 sub update_request_queue {
|
Line 1569 sub update_request_queue {
|
return $output; |
return $output; |
} |
} |
|
|
sub course_portal_url { |
|
my ($cnum,$cdom) = @_; |
|
my $chome = &Apache::lonnet::homeserver($cnum,$cdom); |
|
my $hostname = &Apache::lonnet::hostname($chome); |
|
my $protocol = $Apache::lonnet::protocol{$chome}; |
|
$protocol = 'http' if ($protocol ne 'https'); |
|
my %domdefaults = &Apache::lonnet::get_domain_defaults($cdom); |
|
my $firsturl; |
|
if ($domdefaults{'portal_def'}) { |
|
$firsturl = $domdefaults{'portal_def'}; |
|
} else { |
|
$firsturl = $protocol.'://'.$hostname; |
|
} |
|
return $firsturl; |
|
} |
|
|
|
sub get_student_counts { |
sub get_student_counts { |
my ($cdom,$cnum) = @_; |
my ($cdom,$cnum) = @_; |
my (%idx,%stucounts); |
my (%idx,%stucounts); |
Line 2098 sub process_official_reqs {
|
Line 2082 sub process_official_reqs {
|
my $cid = $dom.'_'.$cnum; |
my $cid = $dom.'_'.$cnum; |
push(@{$newcids{$instcode}},$cid); |
push(@{$newcids{$instcode}},$cid); |
if ($dcname && $dcdom) { |
if ($dcname && $dcdom) { |
my $firsturl = &course_portal_url($cnum,$dom); |
my $firsturl = &Apache::lonnet::course_portal_url($cnum,$dom); |
my $beneficiary = 'pendingrequestor'; |
my $beneficiary = 'pendingrequestor'; |
my $now = time; |
my $now = time; |
my $owner = $ownername.':'.$ownerdom; |
my $owner = $ownername.':'.$ownerdom; |