MDL-35469 fix Gecko based browser checks

The problem is that latest firefox versions stopped using dates because they lost the meaning over the time.
MDL-35958 mod_data: backport of MDL-34448 members of seperate groups can see database entries for other groups.
MDL-36346 - YUI2 SWF vulnerability
Merge branch 'MDL-36346_19' of git://github.com/pauln/moodle into MOODLE_19_STABLE
weekly release 1.9.19+
weekly release 1.9.19+
MDL-27619: Prevent teachers from turning course Outcomes into site-wide ones

Similar to the issue which allowed teachers to create site-wide scales by editing a course-specific scale (MDL-24682), teachers could also promote a course-specific scale to a site-wide (standard) by editing it.  As with MDL-24682, removing the course ID check (leaving just the capability check) prevents this unauthorised creation of site-wide (standard) outcomes.
weekly release 1.9.19+
weekly release 1.9.19+
weekly release 1.9.19+
weekly release 1.9.19+
MDL-38225 - data: Database entries are now linked correctly.

This was a regression that was fixed in the 2.x versions but not 1.9
Merge branch 'mdl19_MDL-35958' of git://github.com/danmarsden/moodle into MOODLE_19_STABLE
on-demand release 1.9.19+