mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02: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
1 changed files with 6 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue