Skip to content
Browse files

blocks MDL-26109 adding docking option to empty blocks as well.

  • Loading branch information...
1 parent d911c72 commit dde36f9d65643491be3d7ff7661aabd619519507 @nebgor nebgor committed Feb 11, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 blocks/moodleblock.class.php
View
4 blocks/moodleblock.class.php
@@ -277,8 +277,8 @@ public function get_content_for_output($output) {
*/
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 @@ function is_empty() {
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 '';

0 comments on commit dde36f9

Please sign in to comment.
Something went wrong with that request. Please try again.