32668 Commits

Author SHA1 Message Date
Ilya Tregubov
e5592f4c14 Merge branch 'MDL-81400-main' of https://github.com/roland04/moodle 2024-04-05 11:29:52 +08:00
Andrew Nicols
606158ca81
Merge branch 'MDL-79863-ordering' of https://github.com/Chocolate-lightning/moodle 2024-04-05 10:07:23 +08:00
Mathew May
3d68bd3fa7 MDL-79863 qtype_ordering: Core changes 2024-04-05 09:24:02 +08:00
Andrew Nicols
91cacf6319
MDL-81084 core: Correct | to || 2024-04-05 07:02:35 +08:00
Sara Arjona
5949ac50f6
Merge branch 'MDL-81084-main' of https://github.com/andrewnicols/moodle 2024-04-04 17:55:48 +02:00
Sara Arjona
0447aa9144
Merge branch 'MDL-4188-main-2' of https://github.com/HuongNV13/moodle 2024-04-04 17:40:57 +02:00
Huong Nguyen
6d196e73bb
Merge branch 'MDL-81386-main' of https://github.com/sarjona/moodle 2024-04-04 21:56:11 +07:00
Huong Nguyen
66e8bf76f9
MDL-4188 core: Modify PHPUnit to use the new sink method 2024-04-04 20:13:47 +07:00
Huong Nguyen
b6af21bec0
MDL-4188 enrol_manual: Send course welcome message on enrolment
AMOS BEGIN
  CPY [customwelcomemessage,enrol_self],[customwelcomemessage,core_enrol]
  CPY [customwelcomemessage_help,enrol_self],[customwelcomemessage_help,core_enrol]
AMOS END
2024-04-04 20:13:46 +07:00
Huong Nguyen
1593f02492
MDL-4188 core: Added course welcome message notification 2024-04-04 19:45:18 +07:00
Huong Nguyen
f53b0b84d2
MDL-4188 core_enrol: Added enrol_plugin::get_welcome_message_contact()
Including in this commit
 - enrol_self_plugin::get_welcome_email_contact() has been deprecated
2024-04-04 19:45:17 +07:00
Huong Nguyen
857fe04b95
Merge branch 'MDL-79131-main' of https://github.com/raortegar/moodle 2024-04-04 10:31:46 +08:00
Ilya Tregubov
ddc1c5ee9a
Merge branch 'MDL-81144-main' of https://github.com/andrewnicols/moodle 2024-04-04 10:30:37 +08:00
Sara Arjona
e1ca397f5a
Merge branch 'MDL-81419-main' of https://github.com/andrewnicols/moodle 2024-04-03 17:15:59 +02:00
Huong Nguyen
dcd753fd37
MDL-81393 atto: Disable mediaplugin filter for Behat test 2024-04-03 18:11:22 +07:00
Andrew Nicols
794c62db58
MDL-81419 core: Ensure that frames exist before checking them 2024-04-03 15:56:08 +08:00
Mikel Martín
e9d73c5834 MDL-81400 tiny_media: Fix size inputs in image modal
MDL-75670 generated a regression in the insert image modal width and height inputs
that were not being displayed in a single line as before.
Modify the insert media modal template to fix it and display them in a single line again.
2024-04-03 09:31:50 +02:00
raortegar
d9f4cc11b8 MDL-79131 core: Add test for max fail delay in scheduled and adhoc task 2024-04-03 09:08:50 +02:00
raortegar
5488908538 MDL-79131 core: Hook listener callback for failed_task_max_delay 2024-04-03 09:08:50 +02:00
raortegar
10ecfa731d MDL-79131 core: Dispatch the new Hook 2024-04-03 09:08:50 +02:00
raortegar
abefcdb09a MDL-79131 core: Added new Hook instance for task failed max delay 2024-04-03 09:08:50 +02:00
raortegar
cc6316368e MDL-79131 core: Added failed task message notification 2024-04-03 09:08:50 +02:00
Sara Arjona
4538be8ee1
MDL-81386 output: Fix failure in PHPUnit when running filtered tests
There was a data provider to get the list of the FontAwesome icons that
was initialized when running filtered tests.
It was causing some failures with filtered tests that, for instance,
called require_login and changed the course.
To avoid this failure (and also to improve the performance), the logic
to get the icons list has been moved to the test.
2024-04-03 08:52:56 +02:00
Andrew Nicols
412fae4792
Merge branch 'MDL-80818-main' of https://github.com/aanabit/moodle 2024-04-03 13:02:40 +08:00
Huong Nguyen
8cd8838acd
Merge branch 'MDL-80838-main' of https://github.com/andrewnicols/moodle 2024-04-03 10:05:42 +07:00
Huong Nguyen
07680ea817 Merge branch 'MDL-81366-main' of https://github.com/meirzamoodle/moodle 2024-04-02 17:43:42 +11:00
Andrew Nicols
298c13ac3b
MDL-80838 core: Add PSR-20/Clock support
This commit adds the PSR-20 ClockInterface to core, with a
moodle-specific extension to the Interface at `\core\clock`, and a
standard clock at `\core\system_clock`.

Further clocks are provided as `\incrementing_clock` and `\frozen_clock`
which are available to unit tests using:

- `$this->mock_clock_with_incrementing(?int $starttime = null);`
- `$this->mock_clock_with_frozen(?int $time = null);`

For the incrementing clock, every call to fetch the time will bump the
current time by one second.

For the frozen clock the time will not change, but can be modified with:
- `$clock->set_to(int $time);`; and
- `$clock->bump(int $seconds = 1);`
2024-04-02 10:24:54 +08:00
Andrew Nicols
9bd3228d69
MDL-81144 core: Standardise init of standard_head_html_prepend hook 2024-04-02 10:23:44 +08:00
Andrew Nicols
305248f41d
MDL-81144 core: Convert before_http_headers 2024-04-02 10:23:44 +08:00
Andrew Nicols
679001e729
MDL-81144 core: Convert before_footer to hook 2024-04-02 10:23:44 +08:00
Andrew Nicols
e4a8ed5cc2
MDL-81144 core: Convert standard_after_main_region_html to hook 2024-04-02 10:23:43 +08:00
Andrew Nicols
ecd5274e74
MDL-81144 core: Convert add_htmlattributes to hook 2024-04-02 10:23:42 +08:00
Andrew Nicols
e3f2b03685
MDL-81144 core: Migrate non-hook footer usages 2024-04-02 10:23:41 +08:00
Andrew Nicols
770e6b49f4
MDL-81144 core: Convert standard_footer_html to hook 2024-04-02 10:23:41 +08:00
Andrew Nicols
3105ea7dc2
MDL-81144 core: Convert before_standard_top_of_body_html to hook 2024-04-02 10:23:41 +08:00
Huong Nguyen
1417cbb65a
Merge branch 'MDL-81347-main' of https://github.com/roland04/moodle 2024-03-29 15:51:47 +07:00
Huong Nguyen
e084be6526
Merge branch 'main_MDL-81154' of https://github.com/mattporritt/moodle 2024-03-28 14:46:37 +07:00
Huong Nguyen
61c8cdaf11
Merge branch 'MDL-81365-main' of https://github.com/ilyatregubov/moodle 2024-03-28 14:31:16 +07:00
Matt Porritt
6d3d498362 MDL-81154 Administration: Remove Moodle Services page
This commit effectively reverts MDL-63153.
Calls to action in the UI for other products or marketing
should link directly to the corresponding services in moodle.com
rather than trying to replicate parts of it in LMS.
2024-03-28 16:57:50 +11:00
Huong Nguyen
1320a2a397
Merge branch 'main_MDL-81172' of https://github.com/mattporritt/moodle 2024-03-28 11:46:51 +07:00
meirzamoodle
ce5b7edd5c MDL-81366 redis: Remove the named parameters
Unfortunately, the read_timeout named parameter was not recognized on some machines.
To avoid such errors, this patch removed the named parameter on a single Redis connect() and the Redis cluster.
2024-03-28 10:19:35 +07:00
Huong Nguyen
cb3494dcd4
Merge branch 'MDL-81222-main' of https://github.com/andrewnicols/moodle 2024-03-28 09:19:45 +07:00
Huong Nguyen
bc6795074d
Merge branch 'MDL-81000-main2' of https://github.com/raortegar/moodle 2024-03-28 08:53:50 +07:00
Andrew Nicols
7233cdad81
MDL-81084 core: Provide \core\plugin_manager
This is just a lightweight way of providing \core\plugin_manager and
aliasing \core_plugin_manager for b/c as a pathway out of our dim and
dark ways of PSR-0 class names.
2024-03-28 09:50:15 +08:00
Andrew Nicols
5f62d5a759
MDL-81084 core: Move standard plugins to plugins.json 2024-03-28 09:31:31 +08:00
Andrew Nicols
2c57fc46b6
MDL-81084 core: Tidy up coding style for \core_plugin_manager 2024-03-28 09:31:14 +08:00
Andrew Nicols
571e951be1
MDL-81084 core: Tidy up plugin manager tests 2024-03-28 09:31:14 +08:00
Amaia Anabitarte
0c2c00cdb8 MDL-80818 QuickForm: Freeze all elements with the same name
There are some radio buttons in activity Completion Conditions settings
that must be frozen altogether, because all of them have the same name.
2024-03-27 16:19:45 +01:00
Sara Arjona
e47b78e870
Merge branch 'MDL-80612-posix-auth' of https://github.com/brendanheywood/moodle 2024-03-27 15:58:48 +01:00
raortegar
8698a9a229 MDL-81000 core: Update "attemptsavailable" value and remove "MAX_RETRY" 2024-03-27 14:00:52 +01:00