Automatically generated installer lang files
MDL-36297 caching: added for HTML purified text
MDL-36095 Section availability: Make behaviour consistent with activities
MDL-37194 activity chooser displays entire list of default activities/resources
MDL-36511 course: Save "completion starts on enrolment" disabled state
MDL-29534 Forum: If forum_replytouser is not set then don't display from user email"
MDL-29534 Forum: if forum_replytouser is not set then send forum email using noreplyaddress.
Automatically generated installer lang files
MDL-35780 Administration: email display on user profile view page will respect user capability
MDL-32341 calendar: get_file_by_hash() expects a hash
MDL-35885 - Wiki - add a legend element to the search wikis form
MDL-37420 rework pg schema (partial backport of 92b00c3)
MDL-37394 SCORM: Aicc direct url fails with new nav as it has a single sco with no children - allow these to be navigated correctly.
Merge branch 'install_24_STABLE' of git://git.moodle.cz/moodle-install into MOODLE_24_STABLE
weekly release 2.4+
MDL-37397 Test for a valid select in formautosubmit

Ideally we shouldn't get into this situation, but in cases where the
generated select element is incorrectly configured, we should try and
handle it gracefully with a warning.
MDL-37485 plugins overview: require_login before _capability.
MDL-37378 quiz restore: timecheckstate not in old backups.

We need to avoid a notice. If the value is missing, setting it to 0 is
fine. It will get sorted out the next time cron is run.
MDL-37431 question preview: cron performance problem.

This query was performing badly. The solution seems to be to add a
redundant JOIN and WHERE to the subquery.

I renamed the table aliases in the subquery to avoid name collisions
elsewhere. I am afraid that makes the diff rather unhelpful. The
    AND subq_qu.component = :qubacomponent2
line is new. The other lines have just had subq_ added.
Moodle release 2.4.1