Before moodle 2.5 upgrade