update the block for Moodle 2.5