--- rat/lonpage.pm 2016/05/30 04:50:39 1.115 +++ rat/lonpage.pm 2016/08/09 23:43:51 1.118 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Page Handler # -# $Id: lonpage.pm,v 1.115 2016/05/30 04:50:39 raeburn Exp $ +# $Id: lonpage.pm,v 1.118 2016/08/09 23:43:51 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -355,8 +355,8 @@ ENDEXT my $output=Apache::lonnet::ssi($src,%posthash); $output=~s|//(\s*)?\s||gs; if (($target eq 'tex') || ($target eq 'tex_answer')) { - $output =~ s/^([^&]+)\\begin{document}//; - $output =~ s/\\end{document}//; + $output =~ s/^([^&]+)\\begin\{document}//; + $output =~ s/\\end\{document}//; # $output = '\parbox{\minipagewidth}{ '.$output.' }'; #some additional cleanup necessary for LateX (due to limitations of table environment $output =~ s/(\\vskip\s*\d+mm)\s*(\\\\)+/$1/g; @@ -479,7 +479,7 @@ ENDEXT $type = 'Task'; } my ($status,$accessmsg,$slot_name,$slot) = - &Apache::lonhomework::check_slot_access('0',$type,$symb,$pagesymb); + &Apache::lonhomework::check_slot_access('0',$type,$symb); undef(%Apache::lonhomework::history); my $probstatus = &Apache::lonnet::EXT("resource.0.problemstatus",$symb); if (($status eq 'CAN_ANSWER') || (($status eq 'CANNOT_ANSWER') && @@ -962,6 +962,7 @@ sub add_countdown_timer { $type = $donebuttonextras->{'type'}; } else { $donebuttontext = &mt('Done'); + $type = 'map'; } $donebutton = &Apache::lonmenu::done_button_js($type,'','',$proctor,$donebuttontext);