Merge branch 'MDL-82349-main-v03' of https://github.com/ferranrecio/moodle
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user