28084 Commits

Author SHA1 Message Date
Andrew Nicols
79731372c3 MDL-64554 core_form: Rename class for dynamic form 2021-02-18 11:16:21 +08:00
Andrew Nicols
ab70110a74 MDL-64554 core_form: CI fixes 2021-02-18 10:10:08 +08:00
Marina Glancy
3045005295 MDL-64554 core_form: Move strings to outputrequirements.lib 2021-02-17 18:07:01 +01:00
Marina Glancy
440073ff20 MDL-64554 user: make private files editor modal/ajax form 2021-02-17 18:06:57 +01:00
Marina Glancy
72be49c473 MDL-64554 core_form: new API for modal forms 2021-02-17 18:06:49 +01:00
Sara Arjona
fd31854480 Merge branch 'MDL-70732-master' of git://github.com/aanabit/moodle 2021-02-10 17:20:22 +01:00
Sara Arjona
3b15de89c7 Merge branch 'MDL-70796' of https://github.com/timhunt/moodle 2021-02-10 16:50:04 +01:00
Sara Arjona
3a5fcbe6e6 Merge branch 'MDL-70631-master-unzip' of git://github.com/mudrd8mz/moodle 2021-02-10 12:38:03 +01:00
Sara Arjona
4f3d90b6a9 Merge branch 'master-MDL-65390' of https://github.com/yao9394/moodle 2021-02-09 15:10:42 +01:00
Sara Arjona
08d1538313 Merge branch 'MDL-70282-oauth2_improve_error' of https://github.com/leonstr/moodle 2021-02-09 11:04:54 +01:00
Sara Arjona
1d6b734108 Merge branch 'MDL-70173-master' of git://github.com/rezaies/moodle 2021-02-09 08:29:13 +01:00
Shamim Rezaie
6df239900e MDL-70173 core: Use a meaningful first level header 2021-02-09 16:16:09 +11:00
Shamim Rezaie
c0e3a4108c MDL-70173 output: All pages should have a heading
In MDL-63040, it was decided that the page header for the dashboad page
should be removed.
However, Based on Success Criteria 1.3.1 and 2.4.6 from the WebAIM's
WCAG 2 Checklist, all pages should have an <h1> element.
So I put an sr-only heading on the dashboard and all other pages, where
no page header is shown.
2021-02-09 16:16:09 +11:00
Shamim Rezaie
b0b3a53521 MDL-70173 output: use an empty alt to hide user pic from screen readers
There is no need to use WAI-ARIA to hide images from screen readers.
See https://www.w3.org/WAI/tutorials/images/decorative/
2021-02-09 16:16:09 +11:00
Andrew Nicols
f5e348ac3e Merge branch 'MDL-69898' of https://github.com/paulholden/moodle 2021-02-08 10:48:29 +08:00
Andrew Nicols
98a261b6ea Merge branch 'MDL-70614' of git://github.com/paulholden/moodle 2021-02-08 10:34:46 +08:00
Andrew Nicols
5cef15ea60 Merge branch 'MDL-70725-master' of git://github.com/sarjona/moodle 2021-02-08 10:33:52 +08:00
Tim Hunt
6c7cf1123e MDL-70796 count_words: match the count from LibraOffice & MS Word 2021-02-05 11:59:48 +00:00
Amaia Anabitarte
248d4ff200 MDL-70732 behat: Adding second parameter to ExpectationException() 2021-02-05 11:01:22 +01:00
John Yao
b964ba6373 MDL-65390 accessibility: correct focus after "Show more" clicked 2021-02-05 12:15:21 +11:00
Andrew Nicols
6995888454 Merge branch 'MDL-69748-master' of git://github.com/rezaies/moodle 2021-02-04 11:51:57 +08:00
Shamim Rezaie
a321181fe6 MDL-69748 core: Fix hideif issue with array elements
Changed the element selector to get all array elements,
whether named or unnamed. The previus selector was only
working for elements that thir names were like name="something[]".
It was not working for name="something[a]" elements.
2021-02-04 14:37:40 +11:00
Andrew Nicols
0377b0f9fa Merge branch 'MDL-64866-master' of git://github.com/ilyatregubov/moodle 2021-02-04 11:37:01 +08:00
Andrew Nicols
031509861b Merge branch 'MDL-70579' of git://github.com/paulholden/moodle 2021-02-04 09:28:22 +08:00
David Mudrák
6109e8b272 MDL-70631 files: Replace hard-coded value with FL_ENC_RAW constant
This is not related to the issue but I noticed it while trying to debug
it.

Back when this line was introduced in 9c140a681e9, the ZipArchive had
not yet exposed this flag as a constant. It was added later with PHP
7.0.8 and we can switch to using it now.
2021-02-03 16:06:39 +01:00
David Mudrák
b227b6ea45 MDL-70631 files: Fix performance of zip_packer::extract_to_pathname()
The original implementation was based on ZipArchive::getStream() which
turns out to be very slow and if the archive contains many files, the
unzipping performance is very slow.

The patch changes the implementation to use ZipArchive::extractTo()
unless the extracted entry path contains a folder name ending with dot
(such as some/path./to/file.txt). There is a known upstream bug in the
PHP ZIP extension #77214 (also #74619 and #69477) so that we fall back
to keep using the stream in those cases.
2021-02-03 16:06:39 +01:00
Sara Arjona
407133af76 Merge branch 'MDL-70315' of git://github.com/paulholden/moodle 2021-02-03 16:04:16 +01:00
Sara Arjona
1e5a862c93 Merge branch 'MDL-70316-master' of git://github.com/mihailges/moodle 2021-02-03 15:29:23 +01:00
Eloy Lafuente (stronk7)
3d276111e1 Merge branch 'MDL-70711-master' of git://github.com/kordan/moodle 2021-02-03 13:03:50 +01:00
Sara Arjona
09cfed9186 Merge branch 'MDL-70439-master' of https://github.com/DinhHien0307/moodle 2021-02-03 13:03:02 +01:00
Sara Arjona
3abda98a2d Merge branch 'MDL-70163' of git://github.com/paulholden/moodle 2021-02-03 12:25:28 +01:00
Sara Arjona
a35c197a4a Merge branch 'MDL-66769-master' of git://github.com/ilyatregubov/moodle 2021-02-03 09:32:30 +01:00
Ilya Tregubov
dde8a5b62c MDL-66769 core_h5p: Clean up orphaned h5p records task. 2021-02-03 10:10:30 +02:00
Andrew Nicols
a35c7f5dce Merge branch 'MDL-70583-cli-progress' of https://github.com/brendanheywood/moodle 2021-02-03 08:27:05 +08:00
Brendan Heywood
ded82b7f5b MDL-70583 cli: Allow progress bars to be rendered in cli scripts 2021-02-02 22:07:14 +11:00
Andrew Nicols
1432180138 Merge branch 'MDL-70304-master' of git://github.com/ilyatregubov/moodle 2021-02-02 15:31:52 +08:00
Sara Arjona
f756d2afbe Merge branch 'MDL-70288-master-2' of git://github.com/junpataleta/moodle 2021-02-02 07:59:28 +01:00
Ilya Tregubov
e174f19db6 MDL-70304 core: updated adapter.js to 7.4.0 2021-02-02 08:58:30 +02:00
Jun Pataleta
e3457dc4aa MDL-70288 core: Remove duplicate labels for checkbox elements
* If there's a label, the text will serve as the description of  the
element.
2021-02-02 13:11:58 +08:00
Eloy Lafuente (stronk7)
43b36f6d68 Merge branch 'MDL-46256' of https://github.com/timhunt/moodle 2021-02-01 23:20:01 +01:00
Eloy Lafuente (stronk7)
cd4d387936 Merge branch 'MDL-70648-master' of git://github.com/lameze/moodle 2021-02-01 19:13:47 +01:00
Paul Holden
a01397bdce MDL-69898 admin: link to config changes report from logged event. 2021-02-01 09:14:06 +00:00
Paul Holden
43adc7a333 MDL-70614 user: consistent roles spacing in course profile. 2021-02-01 07:55:04 +00:00
Andrew Nicols
793f131019 MDL-70734 behat: Increase the WebDriver Curl timeout 2021-01-31 18:21:41 +08:00
Jake Dallimore
9a4cfdeabb Merge branch 'MDL-66979-master-7' of git://github.com/andrewnicols/moodle 2021-01-29 15:41:03 +08:00
Andrew Nicols
bead2a1d96 MDL-66979 behat: Add a step to set a timeout factor for a test 2021-01-29 14:15:24 +08:00
Eloy Lafuente (stronk7)
adc8204a83 MDL-66979 behat: Goutte driver doesn't implement setTimeouts()
Also, change:

get_real_timeout(30000)

to:

get_real_timeout(30) * 1000

because the original functions are defined to use seconds, and
having the 1000 around will help us detecting cases in the case
of a hypothetical review of uses.
2021-01-29 14:15:20 +08:00
Eloy Lafuente (stronk7)
653101964d MDL-66979 behat: Goutte driver doesn't implement setTimeouts()
Also, change:

get_real_timeout(30000)

to:

get_real_timeout(30) * 1000

because the original functions are defined to use seconds, and
having the 1000 around will help us detecting cases in the case
of a hypothetical review of uses.
2021-01-28 12:23:05 +01:00
Leon Stringer
5070f0d7ce MDL-70282 oauth: Improve error information
If the request to the OAuth 2 token endpoint fails show the response
body the endpoint returned with its HTTP status (when debug: DEVELOPER).
If no response is available show any error returned by Curl.  Previously
none of this information was available making troubleshooting difficult.

If a token refresh fails in \core\oauth2\refresh_system_tokens_task an
exception is now thrown so that the result is shown as "Fail" on
admin/tasklogs.php?filter=core\oauth2\refresh_system_tokens_task
2021-01-28 10:00:18 +00:00
Eloy Lafuente (stronk7)
2eebe68cad Merge branch 'MDL-66979-master-7' of git://github.com/andrewnicols/moodle 2021-01-28 09:07:39 +01:00