Permalink
Browse files

Merge branch 'MDL-59453-master' of git://github.com/jleyva/moodle

  • Loading branch information...
dmonllao committed Jul 25, 2017
2 parents 7a39523 + 41860b7 commit 10f9517c222448026a34fe5b7692c35f050e4d93
Showing with 8 additions and 3 deletions.
  1. +8 −3 mod/lesson/classes/external.php
@@ -993,8 +993,10 @@ protected static function get_page_fields(lesson_page $page, $returncontents = f
if ($returncontents || $canmanage || (lesson_displayleftif($lesson) && $page->displayinmenublock && $page->display)) {
$pagedata->title = external_format_string($page->title, $context->id);
$options = array('noclean' => true);
list($pagedata->contents, $pagedata->contentsformat) =
external_format_text($page->contents, $page->contentsformat, $context->id, 'mod_lesson', 'page_contents', $page->id);
external_format_text($page->contents, $page->contentsformat, $context->id, 'mod_lesson', 'page_contents', $page->id,
$options);
}
return $pagedata;
@@ -1309,10 +1311,13 @@ public static function get_page_data($lessonid, $pageid, $password = '', $revie
$answer[$prop] = $a->{$prop};
}
$options = array('noclean' => true);
list($answer['answer'], $answer['answerformat']) =
external_format_text($a->answer, $a->answerformat, $context->id, 'mod_lesson', 'page_answers', $a->id);
external_format_text($a->answer, $a->answerformat, $context->id, 'mod_lesson', 'page_answers', $a->id,
$options);
list($answer['response'], $answer['responseformat']) =
external_format_text($a->response, $a->responseformat, $context->id, 'mod_lesson', 'page_responses', $a->id);
external_format_text($a->response, $a->responseformat, $context->id, 'mod_lesson', 'page_responses',
$a->id, $options);
}
$answers[] = $answer;
}

0 comments on commit 10f9517

Please sign in to comment.