partial commit
close claroline/Claroline#311