MDL-45636 course_rest: changed modcontext to coursecontext
MDL-47466 calendar: use get_in_or_equal() in function calendar_get_events to fix problem with ORA-01795
MDL-47569 backup: Escape section summary for XML

This was causing the parsing of the XML
to fail because things like & were not
escaped.
MDL-47569 backup: Do not close questions tag if never opened

This can happen when restoring quizzes that
do not have any questions.
MDL-47466 calendar: fixed error ORA-01795 in calendar_get_events
MDL-29873 Lesson: Essays not shown on grade page with SQL server
MDL-47806: Add footer function for command line output.
MDL-47902 mod_scorm: Inappropriate default values for SCORM 1.3 variables
MDL-47918 mod_forum: Unsubscribe all - remove discussion subscriptions
MDL-47930 mod_forum: Display all forum statuses correctly

It is possible for users with the mod/forum:managesubscriptions to
subscribe to forums with subscription disabled. This is handled by
forum_get_subscribe_link() already and should have been handled here all
along.
MDL-45538 files: restore missing records in draft areas
MDL-42875 users: Show only profile visible roles on participants list
MDL-47793 assign: Reset reveal identities
MDL-47959 Number of questions not updated dynamically in new quiz edit page
MDL-47966 Add default content type and encoding
MDL-47390 mod_forum: Add discussion unsub to email footer
MDL-47349 gradereport: Use category title on report
MDL-47970 mod_scorm: fixed HTML5 validation error
MDL-47903 mod_forum: Add discussion subscription time

This helps us to only send notifications for messages the user should have
already seen.
MDL-47903 mod_forum: Correct test fails related to caching and time

This adds a reset of the discussion and forum cache when running the mail
and maildigest tests.

These test fails were highlighted by the addition of new tests which
add similar post ids.