Commit Graph

2476 Commits

Author SHA1 Message Date
Andrew Nicols f50b622319 Merge branch 'mdl-75010' of https://github.com/danmarsden/moodle 2022-11-01 11:51:33 +08:00
Michael Hawkins e3b3ba90c8 MDL-74643 core_user: New admin setting for site support availability
This allows admins to configure whether contact site support is
available to everyone, authenticated users, or nobody.

The behat testing checks linked and direct access for each setting,
as well as adding testing that the support page override works as
expected.
2022-10-31 18:58:06 +08:00
Dan Marsden a81c5593a5 MDL-75010 core: Prevent user last access update on user key login 2022-10-31 14:18:31 +13:00
hieuvu c6e018e04e MDL-58266 core_completion: Add new view table. 2022-10-14 00:30:28 +07:00
Andrew Nicols 461fb1b6f6 Merge branch 'MDL-75200-master' of https://github.com/marinaglancy/moodle 2022-09-28 12:35:42 +08:00
Andrew Nicols 1c0b3337a3 Merge branch 'MDL-75168' of https://github.com/paulholden/moodle 2022-09-27 23:41:50 +08:00
Paul Holden fd583ac9f0 MDL-75168 tag: cleanup module tag instances upon course deletion. 2022-09-27 13:40:28 +01:00
sam marshall 81b4f04fb3 MDL-74960 core\lock: Performance info - display lock performance
Show performance information about locks (time taken to acquire lock,
time lock is held for) in the 'perfinfo' display.

Also show existing information (that was already calculated but not
shown before) about the session lock, which is not a 'core\lock' type
lock, but the information is similarly useful.
2022-09-26 11:24:10 +01:00
Marina Glancy c2e18d7912 MDL-75200 core: function clean_param should work with null - php 8.1 2022-09-16 13:30:21 +02:00
Jun Pataleta a4fb12a1a3 Merge branch 'MDL-69888-user-fully-setup-cache' of https://github.com/brendanheywood/moodle 2022-09-14 11:33:47 +08:00
Sara Arjona eef0a430be Merge branch 'MDL-75548' of https://github.com/timhunt/moodle 2022-09-05 13:09:09 +02:00
Tim Hunt 797b9fbd62 MDL-75548 misc: final Required parameter follows optional notices 2022-08-22 15:20:13 +01:00
Tomo Tsuyuki a6a7b16846 MDL-75171 Auth: extend user logged in event
Co-authored-by: Heena Agheda <heenaagheda@catalyst-au.net>
2022-08-19 18:38:59 +10:00
Andrew Nicols 903f04a320 Merge branch 'MDL-74608' of https://github.com/timhunt/moodle 2022-08-18 10:52:02 +08:00
Brendan Heywood f0d91ec708 MDL-69888 core: Cache user fully setup status 2022-08-18 10:29:44 +10:00
Tim Hunt 8babdbd396 MDL-74608 activities: a new option to force the activity language
For a long time, Moodle has had the feature to force the language
for a whole course. This change adds the same feature at activity
level.

The course-level feature was controlled by a capability
moodle/course:setforcedlanguage, and I decided to use the same
capability to control this feature. I think a new capability would be
overkill.
2022-08-15 22:15:52 +01:00
Petr Skoda a50c80b52a MDL-75237 core: improve PARAM_SAFEPATH docs 2022-08-12 04:14:18 +02:00
Petr Skoda 5ed64ce150 MDL-75237 core: Revert MDL-72029
This reverts commit d585f902fc.
2022-08-12 04:14:18 +02:00
Sujith Haridasan 73d604369d MDL-71062 core: Step 1 deprecation of print_error function 2022-07-13 08:20:54 +05:30
Huong Nguyen d585f902fc MDL-72029 lib: Prevent path traversal for clean_param with PARAM_SAFEPATH 2022-07-06 05:24:15 +02:00
Andrew Nicols 9783c54df1 Merge branch 'MDL-74408' of https://github.com/paulholden/moodle 2022-07-06 11:02:15 +08:00
Andrew Nicols 694ef721b6 MDL-74379 core: Update date_format_string to use x-os functions 2022-06-30 10:35:19 +08:00
Andrew Nicols 09858c06d7 Merge branch 'MDL-74379_master' of https://github.com/aya-saad1/moodle 2022-06-30 10:34:58 +08:00
Simey Lameze c85b88c1b6 MDL-74967 core: deprecate groupmember hack from USER object 2022-06-29 04:55:42 +08:00
Aya Saad 8be0dfc928 MDL-74379 language: injecting am/pm in date string
patching the date_format_string() function in moodlelib to add am/pm for languages that don't suuport it.
2022-06-26 10:36:52 +02:00
Paul Holden d91df53d63 MDL-74408 core: exclude empty patterns in divert email config. 2022-06-09 09:39:17 +01:00
Dmitrii Metelkin a6cad23b1a MDL-73431 enrol: Introduce a sync interval 2022-05-30 15:58:22 +10:00
Jun Pataleta 94e803b663 Merge branch 'MDL-73478-improve-set-config' of https://github.com/keevan/moodle 2022-05-18 23:11:06 +08:00
Paul Holden b6d8939959 MDL-72634 user: populate default city/country during user creation. 2022-03-22 17:28:09 +00:00
Tim Hunt d76a072636 MDL-74270 format_float: fix bug with $decimalpoints=0, $stripzeros=true 2022-03-18 22:12:38 +00:00
Jun Pataleta 1e533995dd Merge branch 'MDL-73233-master' of https://github.com/sarjona/moodle 2022-03-18 00:35:11 +08:00
Huong Nguyen bfe14e2312 MDL-72991 Course: Partial course cache rebuild with cache versioning 2022-03-17 15:34:26 +07:00
Sara Arjona 5349861e69 MDL-73233 admin: Add enabledashboard setting
The $CFG->enabledashboard setting has been added to Appearance >
Navigation, to let admins disable the "Dashboard" option from the
primary navigation.

This commit also changes the behaviour of get_home_page(), to take
into account this setting and adds a new method, get_default_home_page(),
to return the expected default home page (that wil be used when current
default page is not defined or valid).
2022-03-16 11:22:22 +01:00
Andrew Nicols 20a016c6e3 Merge branch 'MDL-73582-master-nocache' of https://github.com/vmdef/moodle 2022-02-28 12:50:21 +08:00
Bas Brands 09aa3ad82a MDL-73794 theme_boost: set footer background white 2022-02-17 13:06:56 +01:00
Víctor Déniz 8c5c7070c0 MDL-73582 registration: Add endpoint to provide version to linkchecker 2022-02-16 20:40:23 +00:00
Cameron Ball 776bfb134c MDL-73427 core: Remove $SESSION->fromurl 2022-01-05 19:39:21 +08:00
Kevin Pham c94f6b953f MDL-73478 core: Refactor set_config, redirect nulls to unset_config
- There is now a single point for the configuration to be updated or
  inserted into the DB.
- De-nestifying the code does make it longer to scroll through but you
  can now edit areas of interest with more confidence, and should make
  it easier to grok places of interest.
- Updated DB check from get_field to get_record as it's better in the
  case of an update - using the id.
- Updates will happen on the ID field, which should be the primary key
  for the table.
- Cache won't be invalidated if no changes were made.
- Property does not need to be checked for behat test if you are just
  inserting a new value to an array using the arr[] = value syntax as it
  should just work.
- Opted to replace array_key_exists with isset which is a faster check
  due to it being a language construct and the fact that it should NOT
  contain null values (as a null value would be removed) should mean
  this is a safe change.
- Cleanup function param defaults.
- Prefer [] arrays instead of array() declarations.
2022-01-05 10:04:41 +11:00
Bas Brands f2ddd23ec1 MDL-71457 theme_boost: activity icon styling 2021-12-20 15:02:24 +01:00
Mathew May 54e098c5a5 MDL-73231 my: Allow my courses to be a homepage 2021-12-13 22:43:28 +08:00
Andrew Nicols 97764798a4 Merge branch 'MDL-66776-master' of https://github.com/jleyva/moodle 2021-11-08 08:28:23 +08:00
Juan Leyva 39d96944eb MDL-66776 notifications: New login session notification 2021-11-04 11:18:00 +01:00
Paul Holden e22fded5fe MDL-70823 core: safer alternative for unserializing objects. 2021-11-03 16:57:06 +01:00
Andrew Nicols c5714ac280 Merge branch 'MDL-71211-master-v03' of git://github.com/ferranrecio/moodle 2021-10-20 09:04:57 +08:00
sam marshall 9c29979b8b MDL-72596 core_cache: Track cache I/O size in perfdebug
For cache types which mean this information can be obtained without a
significant performance cost (i.e. just by calling strlen and not
having to serialize something that wasn't serialized already),
this change calculates the size of data read from or written to cache
in each request and includes it in the perfdebug table at bottom of
output (when that is turned on).

This supports the following cache types:

* File store
* Redis (only if caching is enabled)
2021-10-19 17:00:48 +01:00
Ilya Tregubov 0350d42610 MDL-71211 core_course: Keep the status of course index. 2021-10-19 13:17:25 +02:00
sam marshall e332d1849d MDL-72643 core: Improve display_size
Allows display_size to use a fixed unit for easy comparison of
multiple results, and fixed decimal places for the same reason.

Improves behaviour by using consistent decimal places and a
consistent space before the unit (the previous one only has a space
before 'bytes', not before 'KB').

Of existing uses, all the ones that displayed a 'maxbytes' type
configuration setting (which are likely to have an 'exact' size
and would be better shown as 512 KB rather than 512.0 KB) have been
changed to use 0 decimal places, to preserve previous behaviour.
All the uses which were showing an actual file or memory size have
been left as default (1 decimal place).
2021-09-27 16:52:33 +01:00
Brendan Heywood 7b938088b5 MDL-71014 core: Cache immutable bootstrap config locally 2021-09-02 13:22:28 +10:00
Mihail Geshoski 4772dece1d MDL-58393 core: Remove firstname argument from emailconfirmation string 2021-07-08 23:30:33 +02:00
Ferran Recio 934fd12ca8 MDL-71863 core: add templates to ignored plugin folders 2021-06-28 13:50:18 +02:00