Andrew Nicols
30e9810589
Merge branch 'MDL-78151-401' of https://github.com/paulholden/moodle into MOODLE_401_STABLE
2023-05-18 11:48:39 +08:00
Tim Hunt
efe895f1bb
MDL-75576 quiz/question statistics: don't expire by time
...
Previously, a set of calculated quiz statistics would only 'last' for
15 minutes. Then they would be considered invalid and not used.
Now, computed statistics are kept indefinitely. Instead, when a new
batch of values are computed for a particular set of settings, older numbers
for the same settings are deleted first. Therefore,
question_stats_cleanup_task is no more.
2023-05-15 10:04:34 +01:00
Paul Holden
c228866a46
MDL-78151 core: account for timezone differences in intl extension.
...
Recent additions to timezones from the IANA TZDB are not necessarily
reflected in those used by the intl extension and/or ICU zones:
* America/Ciudad_Juarez
* America/Nuuk
* Europe/Kyiv
* Pacific/Kanton
Create mapping to allow these zones to be used without errors.
2023-05-10 17:12:33 +01:00
Andrew Nicols
50d1e69df6
MDL-75552 badges: move apiBase consumption to backpack
...
The apiBase in .well-known/badgeconnect.json was ignored and it was
causing some failures when connecting or sending badges to an
external backpack.
For OBv2.1, it has been changed to always use the apiBase defined
in the badgeconnect.json backpack provider.
2023-05-09 08:51:30 +02:00
Jake Dallimore
79fe493ab4
Merge branch 'MDL-77384-401' of https://github.com/paulholden/moodle into MOODLE_401_STABLE
2023-05-03 16:52:45 +08:00
Paul Holden
22b481f73c
MDL-77384 check: clarify statistics check name.
2023-04-25 09:04:41 +01:00
Marina Glancy
ccdaef7a68
MDL-78009 auth: require necessary files
2023-04-24 13:38:58 +01:00
Ilya Tregubov
bb5bd2eed8
Merge branch 'MDL-77436-401' of https://github.com/meirzamoodle/moodle into MOODLE_401_STABLE
2023-04-20 16:23:19 +08:00
Ilya Tregubov
dd553c1406
Merge branch 'MDL-77827-401' of https://github.com/HuongNV13/moodle into MOODLE_401_STABLE
2023-04-18 08:59:30 +08:00
Huong Nguyen
2f601f1e51
MDL-77827 events: Changed JSON comparison to be less strict
2023-04-14 12:29:32 +07:00
Jun Pataleta
c99abd65ca
MDL-77783 core: Validate sublugins.json
...
* Validate the decoded subplugins.json before processing it.
* Log errors if subplugins.json is invalid or if plugintypes is not
defined.
2023-03-29 09:29:57 +08:00
Meirza
110ec6a703
MDL-77436 auth_oauth2: Update profile fields based on data mapping.
...
After the user creation, the system must call an update function to update profile_fields_*.
We also provided two functions into user/profile/lib.php to get available from other areas.
We added PHP unit testing for new public functions and
the Behat tests for custom profile fields with locked and unlocked statuses.
Co-authored-by: Matt Porritt <matt.porritt@moodle.com>
2023-03-28 11:47:23 +07:00
Matt Porritt
714764d966
MDL-77436 auth_oauth2: Allow admin to choose profile fields for mapping
...
Update oauth2 to allow mapping of provider attributes against
user profile fields. Fields can also be locked to prevent
user changes.
Co-Authored-By: Michael Milette <michael.milette@tngconsulting.ca>
2023-03-28 11:46:51 +07:00
Jun Pataleta
69948eda10
MDL-77105 core: Method to determine whether a plugin has monolog icons
2023-03-27 13:36:38 +08:00
Mark Johnson
34c452afb4
MDL-72124 question: Fix system-level URLs in question events
2023-03-14 15:40:26 +00:00
Lars Bonczek
d5ec540381
MDL-75659 core: Don't render component argument twice in mustache pix helper
2023-03-08 01:00:30 +00:00
Jun Pataleta
2c290f4bb8
Merge branch 'MDL-77430_401' of https://github.com/stronk7/moodle into MOODLE_401_STABLE
2023-03-01 23:59:28 +08:00
Andrew Nicols
3df3b9dfb2
Merge branch 'MDL-74585-401' of https://github.com/paulholden/moodle into MOODLE_401_STABLE
2023-03-01 10:51:45 +08:00
Eloy Lafuente (stronk7)
be32856374
MDL-77430 plugininfo: php81 deprecation warnings on missing plugins
...
Whenever some plugin is missing from disk but installed, the plugins
page (and the upgrade) shows them as "missing from disk". Still, the
code tries to do things with their directory that, now, is null.
That was silently defaulting to '' in previous php versions, but
php81 emits a deprecated warning. So we have to check for them.
2023-02-28 11:41:04 +01:00
Andrew Nicols
3c262bb46f
MDL-77248 mod_bigbluebuttonbn: Set dpa accepted when creating activities
...
This only applies when creating activities using the test data
generator.
2023-02-28 12:04:51 +08:00
Andrew Nicols
9d5e363b41
MDL-77248 core: Move pre_enable_plugin_actions callback to enable_plugin
2023-02-28 12:04:51 +08:00
Paul Holden
58d85f21da
MDL-74585 core: pass string identifier/component to network keepalive.
...
Avoid passing potentially large amounts of data in the page AMD call,
allow the `core/network` module to load actual string content itself.
2023-02-22 16:20:34 +00:00
Andrew Nicols
eed3f09aa0
Merge branch 'MDL-76878-401' of https://github.com/paulholden/moodle into MOODLE_401_STABLE
2023-02-16 10:43:56 +08:00
Andrew Nicols
a1f4f7bac5
MDL-76362 core: plugin names must be strings to be valid
2023-01-23 09:16:07 +08:00
Marina Glancy
2dd7290ccb
MDL-76362 various: Avoid passing nulls to functions that don't allow nulls
...
PHP 8.1 is more strict on the parameter type. Functions such as trim(), strlen(), str_replace(), etc
show notice when null is passed as an argument
2023-01-23 09:16:06 +08:00
Marina Glancy
d83368a475
MDL-76362 mustache: Override parent method to avoid PHP notices
...
Parent method checks baseDir that is null in this case. This shows notices under PHP 8.1
2023-01-23 09:16:06 +08:00
Paul Holden
1c6f0e8a19
MDL-76878 user: amend permission callbacks for preference definitions.
...
Ensure those preferences that are used for storing state can always be
updated via web service requests for the current user.
2023-01-19 15:28:45 +00:00
Paul Holden
f3c335b376
MDL-76862 user: ensure user can only update own preferred start page.
2023-01-12 11:35:26 +08:00
Andrew Nicols
833bc53bbb
Merge branch 'MDL-76356_401' of https://github.com/stronk7/moodle into MOODLE_401_STABLE
2023-01-11 10:30:25 +08:00
Marina Glancy
ff5fc3820a
MDL-76356 various: avoid implicit conversion to int
...
PHP before version 8.1 automatically converted to int if the function
parameter (or array key) is expected to be int. PHP 8.1 shows notice in
this case
2023-01-10 15:25:57 +01:00
Jun Pataleta
1361e6ad92
Merge branch 'MDL-76506_m41' of https://github.com/jrchamp/moodle into MOODLE_401_STABLE
2023-01-09 19:33:59 +08:00
Ilya Tregubov
bc5c812db3
Merge branch 'MDL-75516_401' of https://github.com/larsbonczek/moodle into MOODLE_401_STABLE
2022-12-06 10:38:12 +03:00
Sara Arjona
1b9bcbf19d
Merge branch 'MDL-76166-username-logging-MOODLE_401_STABLE' of https://github.com/brendanheywood/moodle into MOODLE_401_STABLE
2022-12-05 12:44:23 +01:00
Sara Arjona
f2dd9867ab
Merge branch 'MDL-76482-401' of https://github.com/andrewnicols/moodle into MOODLE_401_STABLE
2022-12-05 12:04:02 +01:00
Lars Bonczek
add1d29339
MDL-75516 core: Perform proper JSON encoding in mustache quote helper
2022-12-02 11:22:23 +01:00
Ilya Tregubov
5c96f74a06
Merge branch 'MDL-74853-401' of https://github.com/marinaglancy/moodle into MOODLE_401_STABLE
2022-12-01 08:59:06 +03:00
Andrew Nicols
805559cb48
MDL-76482 output: The javascript mustache helper should return a string
2022-11-30 12:18:47 +08:00
Brendan Heywood
c45c98f6f2
MDL-76166 auth: Ensure user is in server access logs
2022-11-30 13:26:27 +11:00
Jonathan Champ
189c4ce4de
MDL-76506 core\lock: Fix MDL_PERF and perfdebug checks
2022-11-28 18:54:13 -05:00
Paul Holden
e3840909f5
MDL-76380 tool_oauth2: remove double persistent load on update.
...
The method already loaded the validated persistent model data on the
previous line, there's no need to do it again (while also trying to
load unvalidated properties).
2022-11-28 19:38:52 +00:00
Marina Glancy
a5f92c041e
MDL-74853 various: add second parameter to htmlentities functions
...
Default value of the $flag argument changed in PHP 8.1 from ENT_COMPAT to ENT_QUOTES | ENT_SUBSTITUTE
To ensure consistent behavior across different PHP version the second parameter is now required for the functions:
htmlspecialchars(), htmlentities(), htmlspecialchars_decode(), html_entity_decode() and get_html_translation_table()
2022-11-28 16:12:32 +01:00
Marina Glancy
6fb9209405
MDL-76470 core: normalise locale for strftime substitution
...
Huge thanks to Eloy Lafuente for investigation
2022-11-24 16:21:43 +01:00
Marina Glancy
7bbb5434bf
MDL-75100 core: replace function strftime deprecated in PHP 8.1
2022-11-21 11:41:12 +01:00
Jun Pataleta
a482fb4488
Merge branch 'MDL-75903' of https://github.com/paulholden/moodle
2022-11-18 11:28:31 +08:00
Huong Nguyen
ea4a582b3d
MDL-76326 oauth2: Update Nextcloud logo to the new one
2022-11-17 11:31:16 +07:00
Paul Holden
94818dd23f
MDL-75903 output: increase precision of primary active node matching.
...
Co-authored-by: Mikel Martín <mikel@moodle.com>
2022-11-14 17:31:26 +00:00
Adrian Greeve
f865b326ca
Merge branch 'MDL-76099-master' of https://github.com/stevandoMoodle/moodle
2022-11-11 12:26:12 +08:00
Jun Pataleta
c404193823
Merge branch 'MDL-75966-master' of https://github.com/andrewnicols/moodle
2022-11-10 20:28:14 +08:00
Huong Nguyen
bf54db8bac
MDL-75269 tiny_equation: Create TinyMCE Equation editor plugin
...
AMOS BEGIN
CPY [librarygroup1,atto_equation],[librarygroup1,tiny_equation]
CPY [librarygroup1_desc,atto_equation],[librarygroup1_desc,tiny_equation]
CPY [librarygroup2,atto_equation],[librarygroup2,tiny_equation]
CPY [librarygroup2_desc,atto_equation],[librarygroup2_desc,tiny_equation]
CPY [librarygroup3,atto_equation],[librarygroup3,tiny_equation]
CPY [librarygroup3_desc,atto_equation],[librarygroup3_desc,tiny_equation]
CPY [librarygroup4,atto_equation],[librarygroup4,tiny_equation]
CPY [librarygroup4_desc,atto_equation],[librarygroup4_desc,tiny_equation]
AMOS END
Part of MDL-75966
2022-11-10 19:54:01 +08:00
Stevani Andolo
b7f2bbb080
MDL-75262 tiny_accessibility: Implement Accessibility Checker
...
Co-authored by Andrew Lyons <andrew@nicols.co.uk>
Part of MDL-75966
2022-11-10 19:53:58 +08:00