Merge branch 'wip-MDL-37674-m26' of git://github.com/samhemelryk/moodle
authorDan Poltawski <dan@moodle.com>
Tue, 20 Aug 2013 06:21:38 +0000 (14:21 +0800)
committerDan Poltawski <dan@moodle.com>
Tue, 20 Aug 2013 06:21:38 +0000 (14:21 +0800)
blocks/moodleblock.class.php

index 9d9b289..461baf1 100644 (file)
@@ -416,6 +416,9 @@ class block_base {
             'class' => 'block_' . $this->name(). '  block',
             'role' => $this->get_aria_role()
         );
+        if ($this->hide_header()) {
+            $attributes['class'] .= ' no-header';
+        }
         if ($this->instance_can_be_docked() && get_user_preferences('docked_block_instance_'.$this->instance->id, 0)) {
             $attributes['class'] .= ' dock_on_load';
         }