mirror of
https://github.com/moodle/moodle.git
synced 2025-03-23 09:00:30 +01:00
* Using the generator to create the forum discussions, the timecreated of a discussion can be set before the user's last course access which will prevent forum_print_recent_activity() from including this generated discussion in the recent activity results. To work around this, generate the forum discussion 1 second after the current time to make sure that the user's last course access will always be before the discussion's creation time. * This patch also includes some optimisations by: - Removing the unnecessary @javascript tag for the `Time limit expires` scenario - Bringing the discussion generation to each scenario to allow each scenario to customise the data passed to the generator like for the `Time limit expires` scenario. - Navigating directly to the forum instance.