Merge branch 'MDL-81289-402' of https://github.com/ferranrecio/moodle into MOODLE_402_STABLE
This commit is contained in:
@@ -841,16 +841,15 @@ abstract class base {
|
||||
* core_courseformat will be user as the component.
|
||||
*
|
||||
* @param string $key the string key
|
||||
* @param string|object|array $data extra data that can be used within translation strings
|
||||
* @param string|null $lang moodle translation language, null means use current
|
||||
* @param string|object|array|int $data extra data that can be used within translation strings
|
||||
* @return string the get_string result
|
||||
*/
|
||||
public function get_format_string(string $key, $data = null, $lang = null): string {
|
||||
public function get_format_string(string $key, $data = null): string {
|
||||
$component = 'format_' . $this->get_format();
|
||||
if (!get_string_manager()->string_exists($key, $component)) {
|
||||
$component = 'core_courseformat';
|
||||
}
|
||||
return get_string($key, $component, $data, $lang);
|
||||
return get_string($key, $component, $data);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -2,6 +2,9 @@ This files describes API changes for course formats
|
||||
|
||||
Overview of this plugin type at https://moodledev.io/docs/apis/plugintypes/format
|
||||
|
||||
=== 4.2.7 ===
|
||||
* The core_courseformat\base::get_format_string last parameter has been removed because it was erroneous.
|
||||
|
||||
=== 4.2 ===
|
||||
* New core_courseformat\base::get_context() to get the course context directly from the format instance.
|
||||
* New core_courseformat\base::delete_module() method. Now format plugins can extend the activity deletion logic
|
||||
|
||||
Reference in New Issue
Block a user