MDL-39957 course: altered the handling of legacy log data when updating a course as this occurs in multiple places
MDL-39957 course: replaced add_to_log for moving courses
MDL-39957 course: replaced add_to_log for hiding/showing courses