Commit graph

96147 commits

Author SHA1 Message Date
Eloy Lafuente (stronk7)
20d4ecc409 MDL-67034 lti_provider: php74 fix (curly braces) for LTI Provider lib 2019-11-19 10:03:12 +01:00
Jake Dallimore
48bec7814c Merge branch 'MDL-67274-master' of https://github.com/sammarshallou/moodle 2019-11-19 10:51:05 +08:00
Andrew Nicols
04e67878f9 MDL-67285 core: YUI dialogues must use focuslock
YUI Dialogues were using an older method for locking focus to modals,
but this way conflicts with the way in which we lock focus for AMD
modules.

As a result, when an AMD dialogue launches a YUI dialogue the focus is
not correctly locked and it is not possible to focus on anything in the
YUI dialogue.

This includes a minor changes to the focuslock AMD module to ensure that
it is possible to loop the focus in both directions. Many of our older
YUI dialogues are themselves focusable. As a result we need to include
the lock region in the calculation when calculating the possible
descendants.
If we do not do so then the reverse looping does not work.
2019-11-19 07:40:36 +08:00
Mathew May
6ebf994c23 MDL-67160 mod_forum: Show the users grading status in the grader 2019-11-19 10:17:00 +13:00
Eloy Lafuente (stronk7)
7cccf31ce8 Merge branch 'MDL-67148-master' of git://github.com/junpataleta/moodle 2019-11-18 18:42:37 +01:00
sam marshall
b4e2b99c85 MDL-67274 Tasks: Log display fails with memory errors 2019-11-18 13:46:32 +00:00
Jun Pataleta
3299602276 Merge branch 'MDL-67073-master' of git://github.com/marinaglancy/moodle 2019-11-18 16:02:05 +08:00
Jake Dallimore
36ad925edc Merge branch 'MDL-67284' of https://github.com/stronk7/moodle 2019-11-18 11:27:00 +08:00
Jake Dallimore
d84bf35fd1 Merge branch 'MDL-67283' of https://github.com/stronk7/moodle 2019-11-18 11:20:28 +08:00
Eloy Lafuente (stronk7)
59540b861e MDL-67284 mod_feedback: Add missing file phpdoc block 2019-11-17 12:46:31 +01:00
Eloy Lafuente (stronk7)
953a5844ef MDL-67283 backup: Bump release to 3.9 2019-11-17 11:41:30 +01:00
Eloy Lafuente (stronk7)
492d047d11 MDL-67284 upgrade: add 3.8.0 separation line to all upgrade scripts 2019-11-17 11:40:19 +01:00
Eloy Lafuente (stronk7)
712a321db2 MDL-67077 h5p: php74 fix (curly braces) for the H5P lib
This has been sent also upstream @ https://github.com/h5p/h5p-php-library/pull/69
2019-11-16 20:04:04 +01:00
Eloy Lafuente (stronk7)
6783adc239 MDL-67035 tags: fix nested ternary operators to be php74 compliant
Nesting ternary operators without explicit parentheses is deprecated:

    // Code like
    $a ? $b : $c ? $d : $e
    // should be replaced by (current interpretation)
    ($a ? $b : $c) ? $d : $e
    // or (likely intended interpretation)
    $a ? $b : ($c ? $d : $e)
2019-11-16 20:03:47 +01:00
Eloy Lafuente (stronk7)
b69028e626 MDL-67034 google: php74 fix (curly braces) for the Google-Client lib 2019-11-16 20:03:37 +01:00
Eloy Lafuente (stronk7)
15c8da60d4 MDL-67034 adodb: php74 fix (curly braces) for the AdoDB lib 2019-11-16 20:03:37 +01:00
Eloy Lafuente (stronk7)
6b83451251 MDL-67034 horde: php74 fix (curly braces) for the Horde lib 2019-11-16 20:03:37 +01:00
Eloy Lafuente (stronk7)
9e458d8fe8 MDL-67031 s3: php74 fixup for class S3 v0.5.1 2019-11-16 20:03:27 +01:00
Eloy Lafuente (stronk7)
30e5aca81d MDL-67030 htmlpurifier: add details to readme 2019-11-16 20:03:18 +01:00
Eloy Lafuente (stronk7)
9fbe33a6a2 MDL-67030 htmlpurifier: php74 fixup for htmlpurifier v4.10.0
This simply applies this pull request:

https://github.com/ezyang/htmlpurifier/pull/224

straight to our library. Once there is some new htmlpurifier
release available (>v4.11.0) we'll be back upstream because
the fix will be included.
2019-11-16 20:03:18 +01:00
Eloy Lafuente (stronk7)
f94b2e7ade MDL-67029 bennu: add details to readme 2019-11-16 20:03:08 +01:00
Eloy Lafuente (stronk7)
ce17207715 MDL-67029 bennu: php74 fixup for bennu lib 0.1-custom 2019-11-16 20:03:08 +01:00
Eloy Lafuente (stronk7)
ba5aa5fe19 MDL-67017 typo3: add details to readme 2019-11-16 20:02:59 +01:00
Eloy Lafuente (stronk7)
052a282ec4 MDL-67017 typo3: php74 fixup for typo3 lib 4.7.19
We are using a really outdated Typo3 library (2014) already patched
for php73 support. Plus, probably, we'll be soon removing it from core.

So we have decided to, instead of upgrade, apply the needed php74 fixes.
2019-11-16 20:02:59 +01:00
Eloy Lafuente (stronk7)
c3d8c419e5 MDL-66964 markdown: php74 fixup for markdown lib 1.8.0
Note this is different from the upstream commit:

a35858f040

because it was conflicting so only the cases corresponding
to our current 1.8.0 version have been modified.

This commit is trivial, just a pure curly to square replacement.
2019-11-16 20:02:42 +01:00
Eloy Lafuente (stronk7)
d547735f2f weekly back-to-dev release 3.9dev 2019-11-16 18:03:02 +01:00
Eloy Lafuente (stronk7)
bc4c075960 NOBUG: Change travis.yml back to master 2019-11-16 17:54:08 +01:00
Eloy Lafuente (stronk7)
f968cd44e8 Moodle release 3.8 2019-11-16 17:54:08 +01:00
Eloy Lafuente (stronk7)
4da834dcdc NOBUG: Change travis.yml to MOODLE_38_STABLE 2019-11-16 17:54:08 +01:00
Jun Pataleta
dc51037136 Merge branch 'MDL-67281' of https://github.com/stronk7/moodle 2019-11-16 17:44:05 +08:00
Eloy Lafuente (stronk7)
12f310e545 MDL-67281 forum: don't show discussion creation time twice
The discussion creation time (or first post) is being shown
both in the "started by" and "last post" columns in forum
discussions list.

Just let's change the former to show the discussion modification
time (or last post) instead.
2019-11-15 19:11:34 +01:00
Eloy Lafuente (stronk7)
52d3d6f540 Moodle release 3.8rc1 2019-11-15 12:30:52 +01:00
Jun Pataleta
e716c1ea9e Merge branch 'MDL-67269-master' of git://github.com/andrewnicols/moodle 2019-11-15 12:38:54 +08:00
Andrew Nicols
fb803f8854 Merge branch 'MDL-67268-master' of git://github.com/mihailges/moodle 2019-11-15 12:08:33 +08:00
Mihail Geshoski
c7cb3b297b MDL-67268 mod_forum: Group and label radio buttons in forum grader 2019-11-15 12:05:59 +08:00
Andrew Nicols
630a1b0e01 MDL-67269 mod_forum: Capture form submission in grading panel 2019-11-15 11:47:37 +08:00
Andrew Nicols
f45a2860e5 Merge branch 'MDL-67265' of git://github.com/Chocolate-lightning/moodle_forum-project 2019-11-15 10:35:00 +08:00
Mathew May
4e796e2205 MDL-67265 core: Set max-height on toast wrapper 2019-11-15 09:21:06 +08:00
Jake Dallimore
891e027cf1 Merge branch 'MDL-67241-master' of git://github.com/lameze/moodle 2019-11-14 16:34:28 +08:00
Jake Dallimore
324258e5f5 Merge branch 'MDL-67144-integration' of git://github.com/Chocolate-lightning/moodle_forum-project 2019-11-14 15:17:24 +08:00
Mathew May
fc741e030e MDL-67144 mod_forum: If no users exist do not show the grading interface 2019-11-14 15:00:30 +08:00
Jun Pataleta
ff175fce22 Merge branch 'MDL-67246-master' of git://github.com/jleyva/moodle 2019-11-14 14:34:17 +08:00
Jake Dallimore
0460d21b28 Merge branch 'MDL-67207-master' of git://github.com/andrewnicols/moodle 2019-11-14 14:27:42 +08:00
Jun Pataleta
e9f63f3fc0 Merge branch 'MDL-67116-master' of git://github.com/andrewnicols/moodle 2019-11-14 12:37:22 +08:00
Andrew Nicols
c3777543a6 MDL-67116 course: Restore removed line
This line was inadvertently removed in a previous commit.
2019-11-14 11:43:37 +08:00
Andrew Nicols
8a0b9b1830 Merge branch 'MDL-67250-master-httpswwwroot' of git://github.com/mudrd8mz/moodle 2019-11-14 10:54:14 +08:00
Simey Lameze
0e287a0e7b MDL-67241 mod_forum: raise memory limit when exporting 2019-11-14 10:12:15 +08:00
Adrian Greeve
b6343156f9 Merge branch 'MDL-67116-master' of git://github.com/andrewnicols/moodle 2019-11-14 09:03:31 +08:00
Andrew Nicols
0a5a2ca89b MDL-67116 course: Strict empty string check required
In PHP the following are true:

    assert('' == '');
    assert(0 == '');
    assert(null == '');

The options in the course completion settings are now:

    ''    => none selected
    [int] => itemnumber of activity course completion item.

In the case where the itemnumber was 0  this was being incorrectly
evaluated as an empty string due to the implicit cast to int of the
empty string:

    (int) '' === 0

As a result, the non-strict comparison means that the following are
identical:

    assert(0 == '');
    assert(0 == (int) '');
    assert(0 == '0');

Changing the comparison to a strict comparison is correct because it
ensures the type consitency between the empty string value, and the int
of itemnumber 0. It is safe because the value always comes from the
form, where an int is always returned, and not the DB, where a string is
returned.
2019-11-14 08:59:56 +08:00
Eloy Lafuente (stronk7)
ccd5f606c3 Merge branch 'MDL-67248-master' of git://github.com/cescobedo/moodle 2019-11-14 01:12:01 +01:00