From c81a1509e2c6864bac5244c2b3b516e5bba04b80 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 c38dbe9e162..fa734d18738 100644 --- a/mod/lesson/locallib.php +++ b/mod/lesson/locallib.php @@ -4192,8 +4192,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(''); } @@ -4207,8 +4208,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(''); } -- 2.43.0