moodle/availability
sam marshall 4ae6235d64 MDL-72339 core_availability: Unsafe to use format_string in description
The availability condition get_description method is called while
gathering data for the modinfo object. As such it is not safe to
call other functions which might rely on modinfo, such as format_string
(if using filters which access modinfo).

This change provides a mechanism to call format_string later, and also
a general callback to do other stuff later as well if needed. It uses
the same approach already taken to make activity names work correctly
in the availability_condition class.
2021-10-06 11:26:28 +01:00
..
classes MDL-72339 core_availability: Unsafe to use format_string in description 2021-10-06 11:26:28 +01:00
condition MDL-72339 core_availability: Unsafe to use format_string in description 2021-10-06 11:26:28 +01:00
tests MDL-66431 core: Fix behat tests. 2021-05-01 16:18:56 +02:00
yui MDL-71402 availability: fix group restriction button in mod form. 2021-05-06 14:20:34 +01:00
renderer.php MDL-49434 availability: Use renderables for multiple messages 2015-07-15 11:43:01 +01:00
upgrade.txt MDL-72339 core_availability: Unsafe to use format_string in description 2021-10-06 11:26:28 +01:00