version 1.49.6.8, 2021/12/14 02:44:05
|
version 1.49.6.8.2.3, 2023/09/07 23:53:42
|
Line 85 sub real_handler {
|
Line 85 sub real_handler {
|
|
|
unless ($cangrade) { |
unless ($cangrade) { |
# Check for critical messages and redirect if present. |
# Check for critical messages and redirect if present. |
my ($redirect,$url) = &Apache::loncommon::critical_redirect(300); |
my ($redirect,$url) = &Apache::loncommon::critical_redirect(300,'grades'); |
if ($redirect) { |
if ($redirect) { |
&Apache::loncommon::content_type($r,'text/html'); |
&Apache::loncommon::content_type($r,'text/html'); |
$r->header_out(Location => $url); |
$r->header_out(Location => $url); |
Line 101 sub real_handler {
|
Line 101 sub real_handler {
|
$r->send_http_header; |
$r->send_http_header; |
$r->print(&Apache::loncommon::check_release_result(@reinit)); |
$r->print(&Apache::loncommon::check_release_result(@reinit)); |
return OK; |
return OK; |
} elsif ($reinitresult eq 'update') { |
} |
my $cid = $env{'request.course.id'}; |
my ($cid,$cnum,$cdom); |
my $cnum = $env{'course.'.$cid.'.num'}; |
if ($reinitresult) { |
my $cdom = $env{'course.'.$cid.'.domain'}; |
$cid = $env{'request.course.id'}; |
|
$cnum = $env{'course.'.$cid.'.num'}; |
|
$cdom = $env{'course.'.$cid.'.domain'}; |
|
} |
|
if (($reinitresult eq 'main') || ($reinitresult eq 'both')) { |
&Apache::loncommon::content_type($r,'text/html'); |
&Apache::loncommon::content_type($r,'text/html'); |
$r->send_http_header; |
$r->send_http_header; |
&startpage($r,$showPoints); |
&startpage($r,$showPoints); |
Line 136 ENDCLOSE
|
Line 140 ENDCLOSE
|
$r->print($closure); |
$r->print($closure); |
} |
} |
} |
} |
|
if (($reinitresult eq 'supp') || ($reinitresult eq 'both')) { |
|
my $possdel; |
|
if ($reinitresult eq 'supp') { |
|
$possdel = 1; |
|
} |
|
my ($supplemental,$refs_updated) = &Apache::loncommon::get_supplemental($cnum,$cdom,'',$possdel); |
|
unless ($refs_updated) { |
|
&Apache::loncommon::set_supp_httprefs($cnum,$cdom,$supplemental); |
|
} |
|
} |
} |
} |
|
|
unless ($reinitresult eq 'update') { |
unless (($reinitresult eq 'main') || ($reinitresult eq 'both')) { |
# Send header, don't cache this page |
# Send header, don't cache this page |
&Apache::loncommon::no_cache($r); |
&Apache::loncommon::no_cache($r); |
$r->send_http_header; |
$r->send_http_header; |
Line 274 sub getData {
|
Line 288 sub getData {
|
if ($curRes == $iterator->BEGIN_MAP()) {$depth++;} |
if ($curRes == $iterator->BEGIN_MAP()) {$depth++;} |
if ($curRes == $iterator->END_MAP()) { $depth--; } |
if ($curRes == $iterator->END_MAP()) { $depth--; } |
|
|
if (ref($curRes) && $curRes->is_problem() && !$curRes->randomout) |
if (ref($curRes) && $curRes->is_gradable() && !$curRes->randomout) |
{ |
{ |
# Get number of correct, incorrect parts |
# Get number of correct, incorrect parts |
my $parts = $curRes->parts(); |
my $parts = $curRes->parts(); |