--- loncom/interface/lonplacementtest.pm 2016/04/04 15:56:58 1.2 +++ loncom/interface/lonplacementtest.pm 2016/04/14 15:43:45 1.4 @@ -1,8 +1,7 @@ # The LearningOnline Network with CAPA -# Handler to manage dependencies for HTML files uploaded directly -# to a course. +# Handler for a Placement Test course container # -# $Id: lonplacementtest.pm,v 1.2 2016/04/04 15:56:58 raeburn Exp $ +# $Id: lonplacementtest.pm,v 1.4 2016/04/14 15:43:45 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -20,7 +19,8 @@ # # You should have received a copy of the GNU General Public License # along with LON-CAPA; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA# +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# # /home/httpd/html/adm/gpl.txt # # http://www.lon-capa.org/ @@ -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',