blocks/html MDL-19844 Very minimal fixes to make HTML work. Files still not working properly, see MDL-19844

This commit is contained in:
Martin Dougiamas
2010-04-26 07:56:23 +00:00
parent 9f6e1e71ed
commit 94ee9ae007
2 changed files with 10 additions and 4 deletions
+5 -1
View File
@@ -33,8 +33,12 @@ class block_html extends block_base {
}
$this->content = new stdClass;
$this->content->text = isset($this->config->text) ? format_text($this->config->text, FORMAT_HTML, $filteropt) : '';
$this->content->footer = '';
if (isset($this->config->text)) {
$this->content->text = format_text($this->config->text['text'], $this->config->text['format'], $filteropt);
} else {
$this->content->text = '';
}
unset($filteropt); // memory footprint