mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
Now that the extended multilang filter is in place (bug 2879),
reintroducing format_text to the HTML block (bug 2878).
This commit is contained in:
parent
32287aed9b
commit
e345909c50
@ -24,10 +24,15 @@ class block_html extends block_base {
|
||||
return $this->content;
|
||||
}
|
||||
|
||||
$filteropt = new stdClass;
|
||||
$filteropt->noclean = true;
|
||||
|
||||
$this->content = new stdClass;
|
||||
$this->content->text = isset($this->config->text) ? $this->config->text : '';
|
||||
$this->content->text = isset($this->config->text) ? format_text($this->config->text, FORMAT_HTML, $filteropt) : '';
|
||||
$this->content->footer = '';
|
||||
|
||||
unset($filteropt); // memory footprint
|
||||
|
||||
return $this->content;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user