Commit graph

26975 commits

Author SHA1 Message Date
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
Ferran Recio
d009801075 MDL-67377 lib: Update mustache to 2.13.0 2020-01-09 17:32:56 +01:00
John Beedell
2bb9afeaf7 MDL-66918 behat: Behat app step failing 2020-01-09 15:54:16 +00:00
Andrew Nicols
217a9b1ca0 Merge branch 'master_MDL-67485' of https://github.com/golenkovm/moodle 2020-01-09 12:39:28 +08:00
Mikhail Golenkov
6b2e15f6c5 MDL-67485 task: Release the task runner lock before throwing exception. 2020-01-09 14:29:58 +11:00
Andrew Nicols
452f568dca Merge branch 'MDL-67596-cron-ramp-up' of https://github.com/brendanheywood/moodle 2020-01-09 08:11:10 +08:00
Eloy Lafuente (stronk7)
fd25850a8d Merge branch 'MDL-67544-master' of git://github.com/andrewnicols/moodle 2020-01-08 16:35:39 +01:00
Brendan Heywood
286cc88c8c MDL-67596 cron: Allow runners to ramp up instantly 2020-01-08 15:03:56 +11:00
Andrew Nicols
1bb7d46966 Merge branch 'MDL-67378-master' of git://github.com/rezaies/moodle 2020-01-08 11:11:45 +08:00
Brendan Heywood
2d98ebb9de MDL-67635 file_storage: Speedup file storage cleanup cron 2020-01-08 14:00:48 +11:00
Andrew Nicols
bc47535677 Merge branch 'MDL-67376-master' of git://github.com/rezaies/moodle 2020-01-08 10:40:25 +08:00
Andrew Nicols
379e26bfba Merge branch 'MDL-63734-master_hidepassword' of https://github.com/ledship/moodle 2020-01-08 09:39:06 +08:00
Didier 'OdyX' Raboud
fba44e2fed
MDL-64075 antivirus_clamav: refactor scan_file for tcpsocket
- Deprecate \antivirus_clamav\scanner::scan_file_execute_unixsocket()
2020-01-07 08:41:37 +01:00
Didier 'OdyX' Raboud
90c6f0cfea
MDL-64075 antivirus_clamav: refactor scan_data for tcpsocket
- Fix whitespace accross scanner_test for codechecker
- Deprecate \antivirus_clamav\scanner::scan_data_execute_unixsocket()
2020-01-07 08:41:37 +01:00
Didier 'OdyX' Raboud
22b617569c
MDL-64075 antivirus_clamav: separate socket destination in function 2020-01-07 08:41:36 +01:00
Didier 'OdyX' Raboud
a0d871f3f3
MDL-64075 antivirus_clamav: Add TCP socket admin settings 2020-01-07 08:41:35 +01:00
Didier 'OdyX' Raboud
0acf1bae8b
MDL-64075 antivirus_clamav: fix array_search usage
If 'unix' is the first element of the stream_get_transports() result
array, array_search() will return `0` as index result which, when
negated, will result as true.
2020-01-07 08:41:34 +01:00
Andrew Nicols
9d0192e9ce Merge branch 'MDL-58281-file-missing-500' of https://github.com/brendanheywood/moodle 2020-01-07 11:30:30 +08:00
Andrew Nicols
1429ca06a4 Merge branch 'MDL-67114' of https://github.com/stronk7/moodle 2020-01-07 09:37:05 +08:00
Andrew Nicols
58618290fe Merge branch 'MDL-66871-master-v2' of git://github.com/lameze/moodle 2020-01-07 08:00:01 +08:00
Bas Brands
a3f7695f07 MDL-66721 core_chooser: height correction for chooser modal 2020-01-06 10:07:16 +01:00
Andrew Nicols
f04c327222 MDL-67544 form: Ensure that form errors have a unique id 2020-01-06 15:01:08 +08:00
Andrew Nicols
87eba94faf MDL-67544 core: Ensure unique IDs for YUI dialogues 2020-01-06 15:01:07 +08:00
David Monllaó
6429236fcf MDL-67040 mlbackend_python: Adapt python ML to small datasets 2020-01-06 13:41:17 +08:00
David Monllaó
e45b42cb3f MDL-67622 mlbackend_python: Fix f1score calculation 2020-01-06 12:54:43 +08:00
Jake Dallimore
dc3b14399b Merge branch 'master_MDL-64610' of https://github.com/golenkovm/moodle 2020-01-06 10:50:36 +08:00
Simey Lameze
eaf623c5bf MDL-66871 calendar: add unit test coverage for ics importing 2020-01-06 10:36:35 +08:00
Eloy Lafuente (stronk7)
4621917c62 MDL-67114 core: php74 fix. Fix use of scalar as array in core
There are various places where it's not guaranteed that the
variable being used is array, and instead, can be null, bool, int...

We need to check that because php74 warns about it.

Where possible we have used the coalesce operator as
replacement for isset() ternary operations.
2020-01-03 11:33:15 +01:00
Eloy Lafuente (stronk7)
a6e544e825 MDL-67114 scssphp: php74 compatibility local fixes
Note they are already available upstream, versions 1.0.4 and up so,
in next upgrade they will be fixed.
2020-01-03 11:33:15 +01:00
Eloy Lafuente (stronk7)
309912cfca MDL-67114 mustache: php74 fix. Fix use of scalar as array
Trying to use values of type null, bool, int, float or resource as an
array (such as $null["key"]) will now generate a notice. This does not
affect array accesses performed by list().

RFC: https://wiki.php.net/rfc/notice-for-non-valid-array-container
2020-01-03 11:33:15 +01:00
Jake Dallimore
931fa40a66 NOBUG: Fixed file access permissions 2020-01-03 11:24:56 +08:00
Andrew Nicols
27b26d7035 MDL-66833 core: Make print_object play nice with WS 2020-01-03 08:23:12 +08:00
Mikhail Golenkov
1d0b74b2a3 MDL-64610 task: Add support for per-task concurrency limits. 2020-01-02 16:05:47 +11:00
Jun Pataleta
88fbee25d9 Merge branch 'MDL-65835-master' of git://github.com/abgreeve/moodle 2020-01-02 11:52:10 +08:00
Adrian Greeve
d0d65b498c MDL-65835 plagiarism: Initial deprecation of old functions.
This is the initial deprecation of:
* plagiarism_save_form_elements
* plagiarism_get_form_elements_module
* plagiarism_plugin::get_form_elements_module
* plagiarism_plugin::save_form_elements
2020-01-02 11:38:49 +08:00
Eloy Lafuente (stronk7)
f1d12af73a Merge branch 'MDL-67403-x-redirect-by' of https://github.com/brendanheywood/moodle 2019-12-31 12:46:20 +01:00
Eloy Lafuente (stronk7)
cba5cccebd Merge branch 'MDL-67593-master' of https://github.com/snake/moodle 2019-12-31 10:45:11 +01:00