MDL-8349 - responses not being filtered in history display. Merged from MOODLE_18_STABLE.
This commit is contained in:
@@ -1190,11 +1190,11 @@ class default_questiontype {
|
||||
* @param object $cmoptions the context the string is being displayed in. Only $cmoptions->course is used.
|
||||
* @return string the formatted text.
|
||||
*/
|
||||
function format_text($text, $textformat, $cmoptions) {
|
||||
function format_text($text, $textformat, $cmoptions = NULL) {
|
||||
$formatoptions = new stdClass;
|
||||
$formatoptions->noclean = true;
|
||||
$formatoptions->para = false;
|
||||
return format_text($text, $textformat, $formatoptions, $cmoptions->course);
|
||||
return format_text($text, $textformat, $formatoptions, $cmoptions === NULL ? NULL : $cmoptions->course);
|
||||
}
|
||||
|
||||
/// BACKUP FUNCTIONS ////////////////////////////
|
||||
|
||||
Reference in New Issue
Block a user