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:
defacer 2005-05-19 20:09:57 +00:00
parent 32287aed9b
commit e345909c50

View File

@ -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;
}
}