Commit graph

27811 commits

Author SHA1 Message Date
Eloy Lafuente (stronk7)
7d574d8af5 Merge branch 'MDL-66858' of https://github.com/stronk7/moodle 2020-01-22 01:57:18 +01:00
Michael Milette
a75fe2f1b5 MDL-66858 master: Enable <header> tags in Atto editor.
(amended to add the src/editor/js/clean.js
file that was originally missing)
2020-01-22 00:04:23 +01:00
Eloy Lafuente (stronk7)
f81d6fa319 Merge branch 'MDL-65884' of https://github.com/paulholden/moodle 2020-01-20 20:13:29 +01:00
Simey Lameze
c7027c037b MDL-67312 core_user: clean subs events on user deletion 2020-01-20 08:09:16 +01:00
Simey Lameze
f35e360a3b MDL-67312 calendar: upgrade step to delete orphaned events 2020-01-20 08:08:56 +01:00
Simey Lameze
3364e18b46 MDL-67312 core: change db upgrade step to use get_fieldset_sql 2020-01-20 08:07:27 +01:00
Adrian Greeve
c282319a35 Merge branch 'MDL-59594-SIGINT' of https://github.com/brendanheywood/moodle 2020-01-20 10:39:20 +08:00
Eloy Lafuente (stronk7)
881545513e MDL-67691 behat: inform about the_following_exist() removal
behat_data_generators::the_following_exist() has been removed, please use
behat_data_generators::the_following_entities_exist() instead.

See MDL-67691 for more info.
2020-01-20 00:05:41 +01:00
Eloy Lafuente (stronk7)
87861d94e3 MDL-67115 google: php74 params order for implode()
Passing parameters to implode() in reverse order is deprecated, use
implode($glue, $parts) instead of implode($parts, $glue).

This commit corresponds to general search of wrong cases.
2020-01-19 18:47:28 +01:00
Eloy Lafuente (stronk7)
9cdbacf387 MDL-67115 htmlpurifier: php74 params order for implode()
Passing parameters to implode() in reverse order is deprecated, use
implode($glue, $parts) instead of implode($parts, $glue).

This commit corresponds to general search of wrong cases.
2020-01-19 18:47:28 +01:00
Eloy Lafuente (stronk7)
05f6cb9262 MDL-67115 minify: php74 params order for implode()/join()
Passing parameters to implode() in reverse order is deprecated, use
implode($glue, $parts) instead of implode($parts, $glue).

This commit corresponds to phpunit detections, minify library.
2020-01-19 18:47:20 +01:00
Eloy Lafuente (stronk7)
ee439d017e MDL-67115 core: php74 params order for implode()/join()
Passing parameters to implode() in reverse order is deprecated, use
implode($glue, $parts) instead of implode($parts, $glue).

This commit corresponds to phpunit and manual detections, core files.
2020-01-19 18:47:07 +01:00
Pau Ferrer Ocaña
d60b6af9b9 MDL-67727 behat: Reset ionic app properly 2020-01-17 15:30:23 +01:00
Sara Arjona
43b995c490 Merge branch 'MDL-67372-master' of git://github.com/rezaies/moodle 2020-01-17 09:30:11 +01:00
Andrew Nicols
4aa4d44a41 Merge branch 'mdl-59562' of https://github.com/Peterburnett/moodle 2020-01-16 12:10:31 +08:00
Andrew Nicols
76810eb2c0 Merge branch 'wip-MDL-66918-master' of https://github.com/Beedell/moodle 2020-01-16 11:42:16 +08:00
Shamim Rezaie
28bc46092e MDL-67372 libraries: Upgrade HTML Purifier to version 4.12.0 2020-01-16 14:21:40 +11:00
Peter Burnett
72aac06304 MDL-59562 core: updated type hint of new function 2020-01-16 13:05:30 +10:00
Eloy Lafuente (stronk7)
2b12a3668f Merge branch 'MDL-67040_master' of git://github.com/dmonllao/moodle 2020-01-16 00:06:30 +01:00
Sara Arjona
6e2c4af47d Merge branch 'MDL-67379-master' of git://github.com/rezaies/moodle 2020-01-15 22:12:15 +01:00
Víctor Déniz Falcón
8f9bf12206 Merge branch 'MDL-67377-master' of git://github.com/ferranrecio/moodle 2020-01-15 20:51:41 +00:00
Eloy Lafuente (stronk7)
1586b3adf7 Merge branch 'MDL-67622_master' of git://github.com/dmonllao/moodle 2020-01-15 18:55:45 +01:00
Shamim Rezaie
af2c779418 MDL-67379 libraries: Upgrade scssphp to 1.0.6 2020-01-16 00:24:09 +11:00
Andrew Nicols
2bdad64e48 Merge branch 'MDL-67486-swap-cron-lock' of https://github.com/brendanheywood/moodle 2020-01-15 13:53:22 +08:00
Andrew Nicols
30afac71d3 Merge branch 'mdl-59562' of https://github.com/Peterburnett/moodle 2020-01-15 13:51:04 +08:00
Peter Burnett
4fac690ace MDL-59562 core: changed branch behaviour during initial install. 2020-01-15 15:46:46 +10:00
Andrew Nicols
20a7746b1e Merge branch 'mdl-59562' of https://github.com/Peterburnett/moodle 2020-01-15 12:40:19 +08:00
[Peter Burnett]
147a895ad0 MDL-59562 upgrade: Plugins can declare supported moodle versions
* Plugins can now explicitly declare supported and incompatible Moodle
  versions in version.php
  - $plugin->supported[37,39];
    supported takes an array of ascending numbers, that correspond to a
    range of branch numbers of supported versions, inclusive. Moodle
    versions that are outside of this range will produce a message
    notifying at install time, but will allow for installation.

  - $plugin->incompatible = 36;
    incompatible takes a single int corresponding to the first incompatible
    branch. Any Moodle versions including and below this will be prevented
    from installing the plugin, and a message will be given when
    attempting installation.
2020-01-15 14:38:27 +10:00
Sara Arjona
8d529d0a2d Merge branch 'MDL-66213-master-fixcap' of github.com:sarjona/moodle 2020-01-14 19:50:58 +01:00
Eloy Lafuente (stronk7)
a756630e44 Merge branch 'MDL-66253' of https://github.com/NeillM/moodle 2020-01-14 19:44:27 +01:00
Sara Arjona
1962f743dc MDL-66213 roles: review new site:viewanonymousevents capability
Instead of PROHIBIT this capability for teachers, the
RISK_PERSONAL has been added.
2020-01-14 16:42:31 +01:00
Neill Magill
2fc2dfbb37 MDL-66253 calendar: New indexes to reduce full table scans
The eventtype index will stop full table scans when the Event API
retrieves events for a group or category and there are a large number
of groups or categories so it cannot use the groupid or categoryid
indexes efficiently.

The modulename-instance index will improve the performance of queries
used by activity backup, deletion and visibility changes where all
the events for an individual activity need to be found.
2020-01-14 08:47:32 +00:00
Andrew Nicols
6813b79f81 Merge branch 'MDL-64075' of https://github.com/OdyX/moodle 2020-01-14 14:15:46 +08:00
Andrew Nicols
47d18a7303 Merge branch 'MDL-66721-master' of git://github.com/bmbrands/moodle 2020-01-14 14:06:57 +08:00
Andrew Nicols
9c71a497c3 MDL-67684 core: Add missing li tag 2020-01-14 08:46:43 +08:00
Eloy Lafuente (stronk7)
c8ba91cb12 Merge branch 'MDL-66833-master' of git://github.com/andrewnicols/moodle 2020-01-13 18:18:56 +01:00
Eloy Lafuente (stronk7)
da700974d8 Merge branch 'MDL-65812-editable-timeout' of https://github.com/brendanheywood/moodle 2020-01-13 17:09:14 +01:00
Marina Glancy
a79da4f1bb MDL-67680 core: Catch PHP exceptions in the after_config callback 2020-01-13 16:43:59 +01:00
Sara Arjona
b758ba96e5 Merge branch 'MDL-59817-master' of git://github.com/andrewnicols/moodle 2020-01-13 14:26:41 +01:00
Sara Arjona
e3f29b01c0 Merge branch 'patch_view_anon_event_MDL-66213' of git://github.com/Dave-B/moodle 2020-01-13 10:10:10 +01:00
Brendan Heywood
b15c53f4fa MDL-59594 cron: Allow graceful exit of cron and adhoc task cli's 2020-01-12 01:24:03 +11:00
Brendan Heywood
176b5202e0 MDL-59594 cli: Introduce cli helpers for graceful exits
\core\local\cli\shutdown::script_supports_graceful_exit();

    Sets up interception of exit signals and keep the script running.

    \core\local\cli\shutdown::should_gracefully_exit();

    Use this to check whether you should exit, often inside a long running loop.
2020-01-12 01:20:04 +11:00
Brendan Heywood
29e3a223f5 MDL-59594 core: Allow custom signal handlers 2020-01-12 01:20:04 +11:00
Brendan Heywood
b0544ce211 MDL-67486 cron: Improve throughput by holding cron lock for less time 2020-01-12 01:02:57 +11:00
Brendan Heywood
859ed92f9d MDL-65812 session: Increase default timeout and allow larger periods 2020-01-11 23:17:35 +11:00
David Balch
50cc80fd3b MDL-66213 roles: Add capability for viewing anonymous events. 2020-01-10 13:48:51 +00:00
Andrew Nicols
43aa3cbe44 MDL-59817 atto_accessibilitychecker: Handle transparency properly
Some browsers, notably Firefox, do not return the computed style for
background colour in a computed RGB format. Instead they return the RGBA
where the alpha channel is set to fully transparent.

To solve this we need to work up the hierarchy and compute the
background colour for each parent node until we reach full alpha (1).

We can use a standard calculation to approximate the value for the
resultant element background by multiplying the alpha of the current
transparent (or semi-transparent) node with the R, G, or B channel in
question, and that of the parent node's background colour.

There are cases where this will not be 100% accurate - notably where
there is some additional content in addition to the parent background,
but this gives us a reasoable approximation for the majority of cases.
Additionally the code has never considered the full set of node content
when calculating this information.
2020-01-10 15:26:51 +08:00
Andrew Nicols
9b1e5805d9 MDL-67656 behat: Removed nested spin 2020-01-10 13:34:17 +08:00
Andrew Nicols
c7807a10b4 MDL-67656 behat: Fix usleep call in spin 2020-01-10 13:34:12 +08:00
Ferran Recio
18f3df06dc MDL-67377 lib: Moodle changes to mustache upgrade 2020-01-09 17:32:56 +01:00