Huong Nguyen
5d4c88e3da
Merge branch 'MDL-79266' of https://github.com/paulholden/moodle
2024-02-22 10:54:18 +07:00
Huong Nguyen
e7e0d2bfac
Merge branch 'MDL-80868' of https://github.com/paulholden/moodle
2024-02-22 10:43:00 +07:00
Huong Nguyen
3f2b136249
Merge branch 'MDL-80862-main' of https://github.com/andrewnicols/moodle
2024-02-22 10:35:59 +07:00
Jun Pataleta
ea4874094b
Merge branch 'MDL-79520-main' of https://github.com/snake/moodle
2024-02-20 22:22:05 +08:00
Jake Dallimore
d20af220f8
MDL-79520 core: update Clever integration to use OpenId Connect
...
Instead of creating the endpoints manually, and fetching the user info
from several endpoints, which also necessitates the use of a custom
client subclass, use the OpenId configuration endpoint to auto-configure
endpoints, and then use the userinfo endpoint to fetch user info.
2024-02-20 17:07:03 +08:00
Andrew Nicols
8ebd9f08e4
MDL-80862 core: Tidy up state vars in task manager
2024-02-20 12:44:58 +08:00
Andrew Nicols
becd11a84a
MDL-80862 testing: Reset task manager between behat tests
2024-02-20 10:54:12 +08:00
Huong Nguyen
6bddb8626f
MDL-80207 core: Remove Horde library
2024-02-20 09:36:24 +07:00
Andrew Nicols
f0e46b994f
MDL-80072 core: Whitespace fix
2024-02-12 14:28:56 +08:00
Andrew Nicols
85c1dd0077
MDL-80072 core: Deprecate format_text smiley option
...
This was actually deprecated in Moodle 2.0 but did not emit.
2024-02-12 11:11:18 +08:00
Andrew Nicols
d56303aa54
MDL-80072 core: Promote all formatting options to parameters
...
Now that PHP has support for named parameters, and we can use them in
Moodle, we should ditch `$options` arrays and use first-class,
documented, parameters.
Whilst this may seem scary, dumb, overwhelming, please note that you do
not need to supply all args, for example, to change the last parameter
of `format_text` you no longer need to do this:
return \core\container::get(\core\formatting::class)->format_text(
$text,
FORMAT_MOODLE,
$context,
false,
null,
true,
true,
true,
false,
false,
true,
);
Instead you can do:
return \core\container::get(\core\formatting::class)->format_text(
$text,
FORMAT_MOODLE,
$context,
allowid: true,
);
Or better still:
return \core\container::get(\core\formatting::class)->format_text(
text: $text,
format: FORMAT_MOODLE,
context: $context,
allowid: true,
);
This means that we can get defaults in the function signature, improves
our typing, and allows for deprecation and changes to options. It also
sets us up for success in the future.
2024-02-12 11:11:18 +08:00
Andrew Nicols
b353c8e1e2
MDL-80072 core: Improve format_* APIs to improve clarity
2024-02-12 11:11:18 +08:00
Andrew Nicols
fb1d9d65e0
MDL-80072 core: Move format_string cache to class prop
...
This means that the cache will be automatically reset between tests.
2024-02-12 11:11:18 +08:00
Andrew Nicols
ae80cd739b
MDL-80072 core: Coding Style fixes
2024-02-12 11:11:17 +08:00
Andrew Nicols
e8eb163ff9
MDL-80072 core: Move CFG->filterall to formatter property
2024-02-12 11:11:17 +08:00
Andrew Nicols
35a8e23034
MDL-80072 core: Move CFG->formatstringstriptags to formatter property
2024-02-12 11:11:17 +08:00
Andrew Nicols
f9dc48691d
MDL-80072 core: Move CFG->forceclean to formatter property
2024-02-12 11:11:17 +08:00
Andrew Nicols
6bb0c91a73
MDL-80072 core: Move format_text to core\formatting
2024-02-12 11:11:16 +08:00
Andrew Nicols
37ec9ee8ee
MDL-80072 core: Move format_string to core\formatting
2024-02-12 11:11:16 +08:00
Andrew Nicols
9ed3f83dd2
MDL-80072 core: Add \core\di wrapper to php-di
...
The \core\di class is a Moodle wrapper to php-di which is intended to
allow Moodle to switch to an alternate DI solution in the future if
required. All interaction with the container uses the PSR-11 Container
interfaces, which allows for normalisation of configuration, setting,
and retrieving of DI container-identified classes.
2024-02-12 11:11:16 +08:00
Andrew Nicols
192a7797ab
MDL-80072 core: Add php-di codebase
2024-02-12 11:11:15 +08:00
Andrew Nicols
12dcde3fae
MDL-80072 core: Add PSR-11 interfaces
2024-02-09 15:03:57 +08:00
Paul Holden
d30b526bb7
MDL-80868 question: correct deleted format plugin definitions.
2024-02-08 16:15:29 +00:00
Sara Arjona
f5a9e9478f
Merge branch 'MDL-80544' of https://github.com/paulholden/moodle
2024-02-08 11:27:05 +01:00
Paul Holden
3fd7875322
MDL-80544 h5p: add v126 library to list of standard plugins.
2024-02-08 10:03:42 +00:00
Paul Holden
dae077e86a
MDL-78427 report: add theme usage report to list of standard plugins.
2024-02-08 09:44:17 +00:00
Huong Nguyen
4025771583
Merge branch 'MDL-80544-main' of https://github.com/sarjona/moodle
2024-02-08 15:32:29 +08:00
Andrew Nicols
b156b34552
Merge branch 'MDL-80667' of https://github.com/paulholden/moodle
2024-02-08 15:32:28 +08:00
Jun Pataleta
9406820aa1
Merge branch 'MDL-80693-main' of https://github.com/sammarshallou/moodle
2024-02-07 08:33:04 +08:00
Sara Arjona
88cda2171f
MDL-80544 core_h5p: Remove the h5plib_v124 plugin
...
The h5plib_v124 plugin can be removed because it has been replaced
with h5plib_v126, which is using the latest versions of the
libraries.
2024-02-06 08:09:22 +01:00
Jun Pataleta
3c196b3039
Merge branch 'MDL-78427-master' of https://github.com/davewoloszyn/moodle
2024-02-05 13:42:17 +08:00
David Woloszyn
40d397ab5f
MDL-78427 core_theme: Add theme usage report and icon
...
In addition to adding in theme usage reports, there is also the
addition of an icon on the theme cards which takes you to the report.
This icon only appears for that theme if it has been used in any
overriding context.
2024-02-02 11:16:46 +11:00
Ilya Tregubov
67a94c49c4
Merge branch 'MDL-80267-main' of https://github.com/HuongNV13/moodle
2024-02-01 11:52:36 +08:00
Jun Pataleta
b979257e88
Merge branch 'MDL-74775-main' of https://github.com/HuongNV13/moodle
2024-02-01 11:47:16 +08:00
Huong Nguyen
24fde0ce87
MDL-80267 Backup: Make sure to mark the task as failed in such cases
...
Adding a try-catch around the restore process to make sure that
the task will be marked as failed state if the process throws any
exceptions
2024-02-01 09:37:14 +07:00
Stevani Andolo
42d76fd293
MDL-80267 task_course_restore: Prevent failed course restore
2024-02-01 09:31:08 +07:00
Huong Nguyen
aecf9dca1b
Merge branch 'MDL-80250-main' of https://github.com/aanabit/moodle
2024-02-01 09:20:57 +07:00
Huong Nguyen
6139347d33
Merge branch 'MDL-80554-cron-debugdisplay' of https://github.com/brendanheywood/moodle
2024-02-01 09:10:06 +07:00
Amaia Anabitarte
522a7ec010
MDL-80250 course_format: Create new section_viewed event
2024-01-31 12:54:06 +01:00
Huong Nguyen
379e48c1fd
MDL-74775 adhoc_task: Do not clear the timecreated of failed tasks
2024-01-29 09:57:33 +07:00
Paul Holden
a767e0a78c
MDL-78311 core: fix host parameter type cleaning by IPv4 address.
2024-01-25 23:36:06 +00:00
Huong Nguyen
d6254da301
Merge branch 'MDL-80516' of https://github.com/paulholden/moodle
2024-01-25 10:44:47 +07:00
Sara Arjona
634e3594fe
Merge branch 'MDL-76723-main' of https://github.com/junpataleta/moodle
2024-01-24 13:12:15 +01:00
Sara Arjona
8b36abdb9d
Merge branch 'MDL-80259-main' of https://github.com/roland04/moodle
2024-01-24 09:16:12 +01:00
Mikel Martín
a198884333
MDL-80259 theme_boost: Refactor badge helper classes for Bootstrap 5
2024-01-23 08:27:23 +01:00
Sara Arjona
1643b2110e
Merge branch 'MDL-80418-main' of https://github.com/aanabit/moodle
2024-01-22 16:13:46 +01:00
sam marshall
975daef935
MDL-80693 core_user: search() fails if no standard identify fields
2024-01-22 11:38:01 +00:00
Jun Pataleta
6239519eb8
Merge branch 'MDL-80323' of https://github.com/paulholden/moodle
2024-01-22 16:26:14 +08:00
Paul Holden
31af1ac7e2
MDL-80667 task: preserve environment when running tasks from web.
...
For sites that rely on environment variables to set configuration,
ensure they are also present when executing task process.
Co-authored-by: Olivier Wenger <olivier.wenger@liip.ch>
2024-01-18 16:47:44 +00:00
Andrew Nicols
746926220f
Merge branch 'MDL-80201-main' of https://github.com/junpataleta/moodle
2024-01-18 11:34:16 +08:00