Merge branch 'MDL-82349-main-v03' of https://github.com/ferranrecio/moodle

This commit is contained in:
Huong Nguyen
2024-11-19 09:51:54 +07:00
44 changed files with 719 additions and 396 deletions
+12
View File
@@ -565,6 +565,18 @@ abstract class base {
return self::get_section_name($section);
}
/**
* Returns the generic name for sections in this course format.
*
* @return string
*/
public function get_generic_section_name() {
if (get_string_manager()->string_exists('sectionname', 'format_' . $this->format)) {
return get_string('sectionname', 'format_' . $this->format);
}
return get_string('section');
}
/**
* Returns the name for the highlighted section.
*