From 7cfe8b3567d6fd06b396ee3e29bb7934d2fb0bd5 Mon Sep 17 00:00:00 2001 From: Mihail Geshoski Date: Tue, 20 Nov 2018 12:13:38 +0800 Subject: [PATCH] MDL-63417 lesson: Re-apply class variable to the question response --- mod/lesson/locallib.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/mod/lesson/locallib.php b/mod/lesson/locallib.php index c65a6cafb14..63e5499480c 100644 --- a/mod/lesson/locallib.php +++ b/mod/lesson/locallib.php @@ -4187,8 +4187,9 @@ abstract class lesson_page extends lesson_base { if (!empty(trim($response))) { $studentresponse = isset($result->responseformat) ? $this->format_response($response, $context, $result->responseformat, $options) : $response; - $table->data[] = array(''.get_string("response", "lesson"). - ':
'.$studentresponse); + $studentresponsecontent = html_writer::div('' . get_string("response", "lesson") . + ':
' . $studentresponse, $class); + $table->data[] = array($studentresponsecontent); } else { $table->data[] = array(''); } @@ -4202,8 +4203,9 @@ abstract class lesson_page extends lesson_base { $studentresponse = isset($result->responseformat) ? $this->format_response($result->response, $context, $result->responseformat, $result->answerid, $options) : $result->response; - $table->data[] = array(''.get_string("response", "lesson"). - ':
'.$studentresponse); + $studentresponsecontent = html_writer::div('' . get_string("response", "lesson") . + ':
' . $studentresponse, $class); + $table->data[] = array($studentresponsecontent); } else { $table->data[] = array(''); }