moodle/availability/condition
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
..
completion MDL-72339 core_availability: Unsafe to use format_string in description 2021-10-06 11:26:28 +01:00
date MDL-71583 versions: bump all versions and requires near release 2021-05-11 18:50:34 +02:00
grade MDL-72339 core_availability: Unsafe to use format_string in description 2021-10-06 11:26:28 +01:00
group MDL-72339 core_availability: Unsafe to use format_string in description 2021-10-06 11:26:28 +01:00
grouping MDL-72339 core_availability: Unsafe to use format_string in description 2021-10-06 11:26:28 +01:00
profile MDL-72339 core_availability: Unsafe to use format_string in description 2021-10-06 11:26:28 +01:00