Commit graph

101946 commits

Author SHA1 Message Date
Eloy Lafuente (stronk7)
f773514761 MDL-73476 phpunit: events, external and search tescase names
All events_test, external_test and search_test classes:

- Namespaced with component[\level2-API]
- Moved to level2-API subdirectory when required.
- Fixed incorrect use statements with leading backslash.
- Changed code to point to global scope when needed.
- Fix some relative paths and comments here and there.
- All them passing individually.
- Complete runs passing too.

Special mention to lib/external/tests/external_test.php:
- external is not a valid component
- hence, its only valid namespace is "core"
- also, it's testing lib/external/externallib.php
- hence, the file (and class) have been renamed to external_externallib_test.php
  (to avoid conflicts with other external_test that may exist in core)
2022-01-14 16:19:51 +01:00
Sara Arjona
62f859ed24 weekly release 3.11.4+ 2022-01-14 11:14:04 +01:00
Sara Arjona
4b4508fd8b Merge branch 'install_311_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_311_STABLE 2022-01-14 11:14:01 +01:00
Andrew Nicols
8c2057e569 Merge branch 'MDL-73575-311' of https://github.com/paulholden/moodle into MOODLE_311_STABLE 2022-01-14 09:36:47 +08:00
Eloy Lafuente (stronk7)
5c42461b50 Merge branch 'MDL-69624-311' of https://github.com/paulholden/moodle into MOODLE_311_STABLE 2022-01-13 23:25:00 +01:00
Eloy Lafuente (stronk7)
cc4940d794 Merge branch 'MDL-73004-311_access_unit_tests' of https://github.com/brickfield/moodle into MOODLE_311_STABLE 2022-01-13 19:23:29 +01:00
Mike Churchward
29bfe17f2c MDL-73004 tool_brickfield: Fix unit tests for question areas.
Search array of areas for expected question components, rather than assume an array position.
2022-01-13 11:58:28 -05:00
Paul Holden
06abb64d09 MDL-69624 question: add missing test required library. 2022-01-13 15:10:17 +00:00
Paul Holden
df608012a7 MDL-73575 webservice: ensure configured protocols are non-empty. 2022-01-13 12:32:48 +00:00
Víctor Déniz
04be2d16f7 Merge branch 'MDL-73418_311' of https://github.com/ja9837/moodle into MOODLE_311_STABLE 2022-01-12 22:25:16 +00:00
Eloy Lafuente (stronk7)
50c8887deb Merge branch 'MDL-73564-311' of https://github.com/marinaglancy/moodle into MOODLE_311_STABLE 2022-01-12 18:31:20 +01:00
Paul Holden
beb47bcab8 MDL-72772 gradereport_overview: account for users with parent roles. 2022-01-12 14:19:27 +01:00
Marina Glancy
d240de81d1 MDL-73564 webservice: make sure to require webservice lib once 2022-01-12 13:20:18 +01:00
Ilya Tregubov
ff840af0b7 Merge branch 'MDL-71949-fix-backup-log-311' of https://github.com/matthewhilton/moodle into MOODLE_311_STABLE 2022-01-12 11:52:06 +02:00
Eloy Lafuente (stronk7)
d721f94f2b Merge branch 'MDL-70348-311' of https://github.com/paulholden/moodle into MOODLE_311_STABLE 2022-01-12 10:17:41 +01:00
Sara Arjona
cb13d527cd Merge branch 'MDL-71461-311' of https://github.com/dravek/moodle into MOODLE_311_STABLE 2022-01-12 09:58:29 +01:00
Sara Arjona
d661ace551 Merge branch 'MDL-72771_311' of https://github.com/reskit/moodle into MOODLE_311_STABLE 2022-01-12 09:41:10 +01:00
Shamim Rezaie
6ff9b28f66 Merge branch 'MDL-72880-311' of https://github.com/paulholden/moodle into MOODLE_311_STABLE 2022-01-12 19:21:45 +11:00
Paul Holden
e414f5b771 MDL-72772 gradereport_overview: access checks for viewing grades. 2022-01-12 13:43:58 +08:00
Andrew Nicols
7ecb4daee6 Merge branch 'MDL-73526_311' of https://github.com/stronk7/moodle into MOODLE_311_STABLE 2022-01-12 10:21:34 +08:00
AMOS bot
b3f1550b40 Automatically generated installer lang files 2022-01-12 00:07:39 +00:00
Eloy Lafuente (stronk7)
17c70ff8a6 MDL-73526 mod_wiki: Remove unused nwiki diff processor
It never has been used in core since it was introduced in 2011
by MDL-22112, because the ouwiki_diff_html() is used unconditionally
for all wiki formats (html, creole or nwiki).

So, removing it to avoid any current (php80) or future incidence
with it.
2022-01-11 17:27:51 +01:00
Paul Holden
eda7d884ba MDL-72367 badges: require sesskey to remove badge alignment. 2022-01-11 14:34:17 +01:00
Paul Holden
b09d50dd4a MDL-72573 mod_h5pactivity: tighter validation of external sort param.
Restrict external method $sortorder parameter to limited subset of
values.
2022-01-11 14:34:17 +01:00
Dongsheng Cai
a0b04d09a7 MDL-71239 calendar: disallow manager role users edit user events 2022-01-11 14:34:17 +01:00
Jun Pataleta
bb9cd179ed weekly release 3.11.4+ 2022-01-11 21:30:11 +08:00
Jun Pataleta
4cc87b1326 Merge branch 'install_311_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_311_STABLE 2022-01-11 21:30:05 +08:00
David Matamoros
f682557e5f MDL-71461 core_customfield: Add missing library in textarea export value 2022-01-11 11:19:57 +01:00
Jun Pataleta
1303c0fb82 Merge branch 'MDL-69061-311' of https://github.com/junpataleta/moodle into MOODLE_311_STABLE 2022-01-11 11:56:47 +08:00
Adam Pawełczak
c343287349 MDL-69061 core: Fix admin path replacement with path to $CFG->admin 2022-01-11 11:34:09 +08:00
AMOS bot
7d872ea52a Automatically generated installer lang files 2022-01-11 00:07:31 +00:00
Víctor Déniz
62bb90821e Merge branch 'MDL-73414-311' of https://github.com/paulholden/moodle into MOODLE_311_STABLE 2022-01-10 23:21:22 +00:00
Jun Pataleta
62dc08644a Merge branch 'MDL-73502_311' of https://github.com/stronk7/moodle into MOODLE_311_STABLE 2022-01-10 15:10:41 +08:00
AMOS bot
68639cb426 Automatically generated installer lang files 2022-01-08 00:07:28 +00:00
Marc Català
d98bf4c5ff MDL-72771 core_course: Set module visibility after moving it
Move a module to another section needs to update its visibility after
placing it into the new section. Otherwise an invalid database state
prevents the system to move any module with a completion rule
involving grades.
2022-01-07 14:27:24 +01:00
Paul Holden
a35f4515bd MDL-72880 badges: change badge exporter issuername field to text.
This matches it's type in the settings pages, and also the type
of the site name used as the default for the setting. It's content
will now be automatically filtered by the external exporter class.
2022-01-07 09:12:02 +00:00
Ilya Tregubov
c261edf5c7 Merge branch 'MDL-73427-311' of https://github.com/cameron1729/moodle into MOODLE_311_STABLE 2022-01-07 09:45:08 +02:00
Shamim Rezaie
4ce7448979 Merge branch 'MDL-73272/3.11' of https://github.com/skodak/moodle into MOODLE_311_STABLE 2022-01-07 17:45:48 +11:00
AMOS bot
2e814c9d0a Automatically generated installer lang files 2022-01-07 00:07:37 +00:00
Eloy Lafuente (stronk7)
5ef22c2458 MDL-73502 libraries: Avoid uses of get_magic_quotes_xxx() functions
They were deprecated in PHP 7.4 (warning) and have been removed in
PHP 8.0 (error). Plus they were returning false since ages ago (PHP
5.x).

Hence, adding conditional check to see if they are available (h5p
editor) or removing the unreachable code-block when they evaluated
to true.

Also, modified the corresponding moodle_readme files to document
the change.
2022-01-07 00:40:53 +01:00
Ilya Tregubov
d6688ad206 weekly release 3.11.4+ 2022-01-06 20:50:51 +02:00
Jun Pataleta
a569efe93d Merge branch 'MDL-69700-311' of https://github.com/paulholden/moodle into MOODLE_311_STABLE 2022-01-06 12:00:40 +08:00
Cameron Ball
9393fe3643 MDL-73427 core: Remove $SESSION->fromurl 2022-01-06 10:43:12 +08:00
Jun Pataleta
ca560fd8b5 Merge branch 'MDL-73497_311' of https://github.com/stronk7/moodle into MOODLE_311_STABLE 2022-01-06 10:25:12 +08:00
Paul Holden
678c8d5c84 MDL-73497 libraries: upgrade to version 3.3.0 of Spout. 2022-01-05 13:11:45 +01:00
Jun Pataleta
96f7dba2c0 Merge branch 'MDL-68773-clear-adhoc-tasks-311' of https://github.com/Peterburnett/moodle into MOODLE_311_STABLE 2022-01-05 18:46:47 +08:00
Paul Holden
c96d32990d MDL-69700 tests: clarify expected exceptions in unit tests.
Resolves some leftovers from MDL-67673, see d95c3787.
2022-01-05 08:45:31 +00:00
Jun Pataleta
9e7a680127 Merge branch 'MDL-73425-311' of git://github.com/paulholden/moodle into MOODLE_311_STABLE 2022-01-05 12:53:39 +08:00
Ilya Tregubov
79957c645f Merge branch 'MDL-73255-311' of https://github.com/andrewnicols/moodle into MOODLE_311_STABLE 2022-01-04 16:19:03 +02:00
Jun Pataleta
42361660e3 Merge branch 'MDL-73352_311' of https://github.com/stronk7/moodle into MOODLE_311_STABLE 2022-01-04 21:26:03 +08:00