Merge branch 'MDL-73993-MOODLE_311' of https://github.com/golenkovm/moodle into MOODLE_311_STABLE

This commit is contained in:
Sara Arjona
2022-03-09 13:24:37 +01:00
2 changed files with 7 additions and 7 deletions
+4 -4
View File
@@ -556,11 +556,11 @@ function get_array_of_activities($courseid) {
}
/**
* Returns the localised human-readable names of all used modules
* Returns an array where the key is the module name (component name without 'mod_')
* and the value is a lang_string object with a human-readable string.
*
* @param bool $plural if true returns the plural forms of the names
* @return array where key is the module name (component name without 'mod_') and
* the value is the human-readable string. Array sorted alphabetically by value
* @param bool $plural If true, the function returns the plural forms of the names.
* @return lang_string[] Localised human-readable names of all used modules.
*/
function get_module_types_names($plural = false) {
static $modnames = null;
+3 -3
View File
@@ -1500,10 +1500,10 @@ class cm_info implements IteratorAggregate {
}
/**
* Returns a localised human-readable name of the module type
* Returns a localised human-readable name of the module type.
*
* @param bool $plural return plural form
* @return string
* @param bool $plural If true, the function returns the plural form of the name.
* @return lang_string
*/
public function get_module_type_name($plural = false) {
$modnames = get_module_types_names($plural);