Skip to content

Commit

Permalink
Step content is text not string (Fixes #11).
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewnicols committed Aug 31, 2016
1 parent b194d96 commit df441ab
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions classes/output/step.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,29 @@ public function export_for_template(\renderer_base $output) {
$step = $this->step;

$result = (object) [
'title' => external_format_string(static::get_string_from_input($step->get_title()), $PAGE->context->id, true),
'content' => external_format_string(static::get_string_from_input($step->get_content()), $PAGE->context->id, true),
'stepid' => $step->get_id(),
'title' => external_format_text(
static::get_string_from_input($step->get_title()),
FORMAT_HTML,
$PAGE->context->id,
'local_usertours',
null,
null,
[
'filter' => true,
]
)[0],
'content' => external_format_text(
static::get_string_from_input($step->get_content()),
FORMAT_HTML,
$PAGE->context->id,
'local_usertours',
null,
null,
[
'filter' => true,
]
)[0],
'element' => $step->get_target()->convert_to_css(),
];

Expand Down

0 comments on commit df441ab

Please sign in to comment.