From dde36f9d65643491be3d7ff7661aabd619519507 Mon Sep 17 00:00:00 2001 From: Aparup Banerjee Date: Fri, 11 Feb 2011 12:36:19 +0800 Subject: [PATCH] blocks MDL-26109 adding docking option to empty blocks as well. --- blocks/moodleblock.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/blocks/moodleblock.class.php b/blocks/moodleblock.class.php index 89f2e14dd60..f894c0bc2df 100644 --- a/blocks/moodleblock.class.php +++ b/blocks/moodleblock.class.php @@ -277,8 +277,8 @@ class block_base { */ protected function formatted_contents($output) { $this->get_content(); + $this->get_required_javascript(); if (!empty($this->content->text)) { - $this->get_required_javascript(); return $this->content->text; } else { return ''; @@ -687,8 +687,8 @@ class block_list extends block_base { protected function formatted_contents($output) { $this->get_content(); + $this->get_required_javascript(); if (!empty($this->content->items)) { - $this->get_required_javascript(); return $output->list_block_contents($this->content->icons, $this->content->items); } else { return '';