--- loncom/interface/lonplacementtest.pm 2016/04/04 15:56:58 1.2 +++ loncom/interface/lonplacementtest.pm 2016/04/04 17:24:05 1.3 @@ -2,7 +2,7 @@ # Handler to manage dependencies for HTML files uploaded directly # to a course. # -# $Id: lonplacementtest.pm,v 1.2 2016/04/04 15:56:58 raeburn Exp $ +# $Id: lonplacementtest.pm,v 1.3 2016/04/04 17:24:05 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -245,7 +245,9 @@ sub showresult { my ($score) = &Apache::lonplacementtest::check_completion(1,undef,1); my %aclt = &test_action_text(); my $output; - unless ($inhibitmenu) { + if ($inhibitmenu) { + $output = '
'; + } else { my $brcrum = [{'href' => '/adm/flip?postdata=firstres%3a', 'text' => 'Test Status'},]; $output = &Apache::loncommon::start_page('Placement Test Completed', @@ -270,7 +272,9 @@ sub showincomplete { my %aclt = &test_action_text(); my $output; if ($incomplete == 100) { - unless ($inhibitmenu) { + if ($inhibitmenu) { + $output = '
'; + } else { my $brcrum = [{'href' => '/adm/flip?postdata=firstres%3a', 'text' => 'Test Status'},]; $output = &Apache::loncommon::start_page('Placement Test Unattempted', @@ -284,7 +288,9 @@ sub showincomplete { ''.$aclt{'exit'}.'', ]); } elsif ($incomplete) { - unless ($inhibitmenu) { + if ($inhibitmenu) { + $output = '
'; + } else { my $brcrum = [{'href' => '/adm/flip?postdata=endplacement%3a', 'text' => 'Test Status'},]; $output .= &Apache::loncommon::start_page('Incomplete Placement Test',