diff --git a/admin/report/spamcleaner/index.php b/admin/report/spamcleaner/index.php index fc9c8d3142323..eeb2f05986a9e 100755 --- a/admin/report/spamcleaner/index.php +++ b/admin/report/spamcleaner/index.php @@ -267,7 +267,7 @@ function print_user_entry($user, $keywords, $count) { $user->descriptionformat = FORMAT_MOODLE; } - $html .= ''.format_text($user->description, $user->descriptionformat).''; + $html .= ''.format_text($user->description, $user->descriptionformat, array('overflowdiv'=>true)).''; $html .= ''; $html .= '
'; $html .= ''; diff --git a/backup/util/ui/renderer.php b/backup/util/ui/renderer.php index 058ed790083f0..413e2ca12fd0e 100644 --- a/backup/util/ui/renderer.php +++ b/backup/util/ui/renderer.php @@ -587,7 +587,7 @@ public function render_restore_category_search(restore_category_search $componen $row->cells = array( html_writer::empty_tag('input', array('type'=>'radio', 'name'=>'targetid', 'value'=>$category->id)), $category->name, - format_text($category->description, $category->descriptionformat) + format_text($category->description, $category->descriptionformat, array('overflowdiv'=>true)) ); $table->data[] = $row; } diff --git a/blocks/course_summary/block_course_summary.php b/blocks/course_summary/block_course_summary.php index 52424c61c2c3d..7905822233cdc 100644 --- a/blocks/course_summary/block_course_summary.php +++ b/blocks/course_summary/block_course_summary.php @@ -25,6 +25,7 @@ function get_content() { $this->content = new stdClass(); $options = new stdClass(); $options->noclean = true; // Don't clean Javascripts etc + $options->overflowdiv = true; $context = get_context_instance(CONTEXT_COURSE, $this->page->course->id); $this->page->course->summary = file_rewrite_pluginfile_urls($this->page->course->summary, 'pluginfile.php', $context->id, 'course', 'summary', NULL); $this->content->text = format_text($this->page->course->summary, $this->page->course->summaryformat, $options); diff --git a/blocks/glossary_random/block_glossary_random.php b/blocks/glossary_random/block_glossary_random.php index 2bfcce07c5794..9e1eaa87aae04 100644 --- a/blocks/glossary_random/block_glossary_random.php +++ b/blocks/glossary_random/block_glossary_random.php @@ -84,6 +84,7 @@ function specialization() { $options = new stdClass(); $options->trusted = $entry->definitiontrust; + $options->overflowdiv = true; $text .= format_text($entry->definition, $entry->definitionformat, $options); $this->config->nexttime = usergetmidnight(time()) + DAYSECS * $this->config->refresh; diff --git a/blocks/html/block_html.php b/blocks/html/block_html.php index 1248a2f449c32..de484a507ee16 100755 --- a/blocks/html/block_html.php +++ b/blocks/html/block_html.php @@ -46,12 +46,11 @@ function get_content() { return $this->content; } + $filteropt = new stdClass; + $filteropt->overflowdiv = true; if ($this->content_is_trusted()) { // fancy html allowed only on course, category and system blocks. - $filteropt = new stdClass; $filteropt->noclean = true; - } else { - $filteropt = null; } $this->content = new stdClass; diff --git a/blocks/html/styles.css b/blocks/html/styles.css new file mode 100644 index 0000000000000..de90b14227afb --- /dev/null +++ b/blocks/html/styles.css @@ -0,0 +1,2 @@ +.block.block_html .content {padding:0;} +.block.block_html .content .no-overflow {padding:4px;} \ No newline at end of file diff --git a/blocks/rss_client/block_rss_client.php b/blocks/rss_client/block_rss_client.php index d7324090e8bd6..01b06de41d944 100644 --- a/blocks/rss_client/block_rss_client.php +++ b/blocks/rss_client/block_rss_client.php @@ -185,7 +185,7 @@ function get_feed_html($feedrecord, $maxentries, $showtitle){ } - $r.='