Commit graph

109898 commits

Author SHA1 Message Date
Meirza
0d54d69c22 MDL-78142 lib: Added class properties that are not declared in bennu
In PHP 8.2 and later, setting a value to an undeclared class property is
deprecated and emits a deprecation notice.
So we need to add missing class properties that still need to be declared.
2023-05-27 09:49:39 +07:00
Meirza
ccac845f11 MDL-78166 lib: Added missing class properties in portfolio
In PHP 8.2 and later, setting a value to an undeclared class property is
deprecated and emits a deprecation notice.
So we need to add missing class properties that still need to be declared.

Removing the existing $id property at portfolio_format_leap2a_writer, because
the $id only needed inside the __construct().
2023-05-27 09:28:03 +07:00
Meirza
b7008d33ea MDL-78167 lib: Added missing class properties in tests
In PHP 8.2 and later, setting a value to an undeclared class property is
deprecated and emits a deprecation notice.
So we need to add missing class properties that still need to be declared.

Adding @runTestsInSeparateProcesses and removing setUp() and tearDown() at the
component_test.php, so the test will run in a separate process making sure that
whatever changes happen to the in-memory version of the component class in its thread,
therefore does not impact other tests and makes it more safe.
2023-05-27 09:24:59 +07:00
Anupama Sarjoshi
b4b9248b78 MDL-78019 core: Logs to record user file deleted from draft area 2023-05-26 17:45:36 +01:00
Eloy Lafuente (stronk7)
16e101ff72
MDL-78036 behat: Fix php81 deprecation warning 2023-05-26 18:04:11 +02:00
Luca Bösch
eecbead7d9 MDL-78314 quiz: style button fieldset in "Manually grade question". 2023-05-26 15:09:43 +02:00
Paul Holden
cace650f26
MDL-71325 grade: final removal of deprecated category external method. 2023-05-26 13:48:57 +01:00
Paul Holden
8c7158e224
MDL-71067 phpunit: final removal of deprecated 311 coverage properties. 2023-05-26 13:40:35 +01:00
Paul Holden
9990a740bf
MDL-78352 webservice: use default user context page heading. 2023-05-26 12:25:38 +01:00
Wehr Mario
fbe936cef7 MDL-78004 cache: Fix deprecated null value in Redis connect 2023-05-26 13:25:19 +02:00
Paul Holden
12bc873b26
MDL-73648 badges: add Behat generator class for creating badges. 2023-05-26 12:19:14 +01:00
Paul Holden
7ee4e2afa0
MDL-73138 group: remove double encoding of group/role names. 2023-05-26 10:25:33 +01:00
Paul Holden
5cc7311717
MDL-73138 user: avoid double encoding participant filter values. 2023-05-26 10:25:33 +01:00
Sara Arjona
4ed782dd03 weekly release 4.3dev 2023-05-26 09:28:35 +02:00
Sara Arjona
cb5ce03aae Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2023-05-26 09:28:25 +02:00
Andrew Nicols
0f25d9360d
Merge branch 'MDL-77252-master-fix' of https://github.com/davewoloszyn/moodle 2023-05-26 11:12:44 +08:00
David Woloszyn
81414b527a MDL-77252 course: Fixed failing communication room status test 2023-05-26 11:55:23 +10:00
Jun Pataleta
e1d1cf8bfe Merge branch 'MDL-78346-master' of https://github.com/andrewnicols/moodle 2023-05-25 16:22:55 +08:00
Andrew Nicols
cc193bd7a6
MDL-78346 tool_langimport: Print any notifications before redirect 2023-05-25 14:54:35 +08:00
Andrew Nicols
18dc795907
MDL-78266 core: Simplify string fetching/storing/retrieval
Rather than storing strings by an ID, we instead store them by the
string placeholder value.

This means that:
- we can fetch them by placeholder (e.g. `[[_s144]]`) rather than by
  index
- we can lazily clean them on fetch
- we only clean them once, rather than on every insertion.
2023-05-25 13:42:15 +08:00
Andrew Nicols
a438e2c72d
MDL-78266 core: Simplify string treatment in core/templates
The old handling was extremely convoluted, and likely inefficient.

It's much clearer to use a regex with named groups and loop through in a
standard way.
2023-05-25 13:42:08 +08:00
Andrew Nicols
1ef815cd97
MDL-78266 core: Break apart core/templates
This commit breaks apart the responsibilities of the core/templates
module to separate out the different constituent parts. Broadly speaking
these are:
- core/local/templates/loader - responsible for fetching, and caching,
  of templates
- core/local/templates/renderer - A Moodle wrapper around the Mustache
  engine
2023-05-25 13:42:00 +08:00
Andrew Nicols
16dee82ce5
MDL-78266 core: Migrate core/templates to esm 2023-05-25 12:09:46 +08:00
Andrew Nicols
e82aed72e6
Merge branch 'MDL-78012' of https://github.com/paulholden/moodle 2023-05-25 12:02:55 +08:00
Jun Pataleta
c1c6234aea Merge branch 'MDL-78339' of https://github.com/paulholden/moodle 2023-05-25 12:01:15 +08:00
Jun Pataleta
d1de2ba1a4 Merge branch 'MDL-76065-master' of https://github.com/lameze/moodle 2023-05-25 11:56:54 +08:00
Jun Pataleta
fe69b61828 Merge branch 'MDL-78169-master' of https://github.com/andrewnicols/moodle 2023-05-25 11:50:22 +08:00
Jun Pataleta
428e604344 Merge branch 'MDL-78320' of https://github.com/paulholden/moodle 2023-05-25 11:48:42 +08:00
Jun Pataleta
b67930a29c Merge branch 'MDL-78346-master' of https://github.com/andrewnicols/moodle 2023-05-25 11:43:37 +08:00
Jun Pataleta
881b51c8e2 Merge branch 'MDL-77159-master' of https://github.com/andrewnicols/moodle 2023-05-25 11:39:52 +08:00
Andrew Nicols
68122a9d89
MDL-78346 tool_langimport: Redirect after action to prevent resubmission 2023-05-25 11:14:14 +08:00
Andrew Nicols
ad7a5030f1
MDL-78346 tool_langimport: Prevent uninstallation of invalid targets 2023-05-25 11:14:14 +08:00
Andrew Nicols
d895574c9a
Merge branch 'MDL-77252-master' of https://github.com/davewoloszyn/moodle 2023-05-25 10:49:30 +08:00
Andrew Nicols
1cd51db6a1
Merge branch 'MDL-77341-master' of https://github.com/meirzamoodle/moodle 2023-05-25 10:44:50 +08:00
Andrew Nicols
5c183a99e7
Merge branch 'MDL-78307-master' of https://github.com/dpalou/moodle 2023-05-25 10:42:19 +08:00
Andrew Nicols
b50d41b085
Merge branch 'MDL-63759-master' of https://github.com/srobotta/moodle 2023-05-25 10:37:03 +08:00
Andrew Nicols
e6e753024c
Merge branch 'MDL-78332' of https://github.com/skodak/moodle 2023-05-25 10:03:22 +08:00
Andrew Nicols
e702298612
Merge branch 'MDL-77995' of https://github.com/paulholden/moodle 2023-05-25 09:49:11 +08:00
Petr Skoda
8a9e5aeb7a MDL-78332 core: fix hook discovery and use is_subclass_of()
And order hooks in admin UI - core first.
2023-05-24 19:53:18 +02:00
Paul Holden
ca95bee259
MDL-78333 mod_assign: final removal of deprecated log format methods. 2023-05-24 16:41:55 +01:00
Paul Holden
b2dd8a3cbd
MDL-78320 quiz_overview: format group names in overview report. 2023-05-24 16:19:29 +01:00
Andrew Nicols
d8a7039f92
Merge branch 'MDL-77983-master' of https://github.com/rjnl/moodle 2023-05-24 21:14:41 +08:00
Andrew Nicols
c730b8735f
MDL-77159 tool_langimport: Replace YUI module with ESM 2023-05-24 20:40:14 +08:00
Petr Skoda
0dcb5c4281 MDL-78332 core: remove unnecessary hooks reset method 2023-05-24 14:35:59 +02:00
Jun Pataleta
ac0767cac4 Merge branch 'MDL-77353_Master' of https://github.com/catalyst/moodle-MDL-76126 2023-05-24 20:18:59 +08:00
=
a076a80dec MDL-63120 core_badges: Avoid multiple joins in sql statement 2023-05-24 13:37:59 +02:00
Dani Palou
53eb03bcc6 MDL-78307 quiz: Fix URL passed to secure_window.init_close_button 2023-05-24 13:10:50 +02:00
Dani Palou
a5a33b8d4a MDL-78307 quiz: Fix contexturl passed to attempt_overdue message 2023-05-24 13:10:50 +02:00
Paul Holden
373c163f74
MDL-78339 webservice: correctly namespace external API. 2023-05-24 09:36:23 +01:00
Andrew Nicols
03d70834c9
Merge branch 'MDL-73464-master' of https://github.com/Chocolate-lightning/moodle 2023-05-24 14:56:47 +08:00