mirror of
https://github.com/moodle/moodle.git
synced 2025-03-03 15:29:08 +01:00
Merge branch 'MDL-29018' of git://github.com/rwijaya/moodle
This commit is contained in:
commit
ae4d8567b4
@ -560,7 +560,7 @@ if ($action === 'delete') {
|
|||||||
$table->data[] = array($fontstart.get_string("question", "lesson").": <br />".$fontend.$fontstart2.$page->contents.$fontend2, " ");
|
$table->data[] = array($fontstart.get_string("question", "lesson").": <br />".$fontend.$fontstart2.$page->contents.$fontend2, " ");
|
||||||
$table->data[] = array($fontstart.get_string("answer", "lesson").":".$fontend, ' ');
|
$table->data[] = array($fontstart.get_string("answer", "lesson").":".$fontend, ' ');
|
||||||
// apply the font to each answer
|
// apply the font to each answer
|
||||||
if (!empty($page->answerdata) && isset($page->answerdata->response)) {
|
if (!empty($page->answerdata)) {
|
||||||
foreach ($page->answerdata->answers as $answer){
|
foreach ($page->answerdata->answers as $answer){
|
||||||
$modified = array();
|
$modified = array();
|
||||||
foreach ($answer as $single) {
|
foreach ($answer as $single) {
|
||||||
@ -569,12 +569,12 @@ if ($action === 'delete') {
|
|||||||
}
|
}
|
||||||
$table->data[] = $modified;
|
$table->data[] = $modified;
|
||||||
}
|
}
|
||||||
if ($page->answerdata->response != NULL) {
|
if (isset($page->answerdata->response)) {
|
||||||
$table->data[] = array($fontstart.get_string("response", "lesson").": <br />".$fontend.$fontstart2.format_text($page->answerdata->response,$page->answerdata->responseformat,$formattextdefoptions).$fontend2, " ");
|
$table->data[] = array($fontstart.get_string("response", "lesson").": <br />".$fontend.$fontstart2.format_text($page->answerdata->response,$page->answerdata->responseformat,$formattextdefoptions).$fontend2, " ");
|
||||||
}
|
}
|
||||||
$table->data[] = array($page->answerdata->score, " ");
|
$table->data[] = array($page->answerdata->score, " ");
|
||||||
} else {
|
} else {
|
||||||
$table->data[] = array(0, " ");
|
$table->data[] = array(get_string('didnotanswerquestion', 'lesson'), " ");
|
||||||
}
|
}
|
||||||
echo html_writer::table($table);
|
echo html_writer::table($table);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user