Revision according last version of wp2moodle

Changes according to the last version of wp2moodle