From e345909c50c42552c054f47a74fdfb0046cfbccc Mon Sep 17 00:00:00 2001 From: defacer Date: Thu, 19 May 2005 20:09:57 +0000 Subject: [PATCH] Now that the extended multilang filter is in place (bug 2879), reintroducing format_text to the HTML block (bug 2878). --- blocks/html/block_html.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/blocks/html/block_html.php b/blocks/html/block_html.php index fe56fa92982..ff539610cbf 100755 --- a/blocks/html/block_html.php +++ b/blocks/html/block_html.php @@ -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; } }