Skip to content
Snippets Groups Projects
Commit da215692 authored by Chris Sangwin's avatar Chris Sangwin
Browse files

Tidy up question testing page.

parent 53a3af1d
No related branches found
No related tags found
No related merge requests found
......@@ -445,8 +445,10 @@ foreach ($testresults as $key => $result) {
$prtinputs = array();
foreach(array_keys($inputsneeded[$prtname]) as $inputname) {
if (array_key_exists($inputname, $typeininputs)) {
$prtinputs[] = $typeininputs[$inputname];
}
}
if ($prtinputs != array()) {
$prtinputs[] = "/* ------------------- */\n";
}
......@@ -482,10 +484,7 @@ foreach ($testresults as $key => $result) {
format_text($state->feedback),
$passedcol,
);
if ($state->debuginfo != '') {
$debuginfo .= "\n<h2>".$prtname."</h2>\n\n";
$debuginfo .= $state->debuginfo;
}
// TODO: reinstate debuginfo here.
}
echo html_writer::table($prtstable);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment