Merge branch 'wip-MDL-37674-m26' of git://github.com/samhemelryk/moodle

This commit is contained in:
Dan Poltawski 2013-08-20 14:21:38 +08:00
commit d5b076a2ca

View 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';
}