Index: blocks/moodleblock.class.php =================================================================== RCS file: /globalcvs/ou-moodle/blocks/moodleblock.class.php,v retrieving revision 1.22.4.1 diff -u -r1.22.4.1 moodleblock.class.php --- blocks/moodleblock.class.php 8 May 2008 09:21:21 -0000 1.22.4.1 +++ blocks/moodleblock.class.php 13 May 2008 12:43:48 -0000 @@ -575,7 +575,11 @@ * @todo finish documenting this function */ function html_attributes() { - return array('id' => 'inst'.$this->instance->id, 'class' => 'block_'. $this->name()); + return array( + 'id' => 'inst'.$this->instance->id, + 'class' => 'block_'. $this->name(). + ($this->edit_controls ? ' block_with_controls' :'') + ); } /**