This commit is contained in:
Jun Pataleta 2023-03-21 10:57:04 +08:00 committed by Sara Arjona
commit 869cfac1cc
2 changed files with 3 additions and 10 deletions

View File

@ -7,6 +7,7 @@ information provided here is intended especially for developers.
* The function duplicate_module() now has two new optional parameters:
- $sectionid to specify section the duplicated course module is placed in
- $changename to disable changing the name of the course module using the 'duplicatedmodule' lang string
* The method `make_categories_options`, deprecated since 3.10, has been removed
=== 4.1 ===
* The function course_modchooser() has been finally deprecated and can not be used anymore. Please use

View File

@ -3209,19 +3209,11 @@ function plagiarism_get_form_elements_module() {
/**
* Returns the list of full course categories to be used in html_writer::select()
*
* Calls {@see core_course_category::make_categories_list()} to build the list.
*
* @deprecated since Moodle 3.10
* @todo This will be finally removed for Moodle 4.2 as part of MDL-69124.
* @return array array mapping course category id to the display name
*/
function make_categories_options() {
$deprecatedtext = __FUNCTION__ . '() is deprecated. Please use \core_course_category::make_categories_list() instead.';
debugging($deprecatedtext, DEBUG_DEVELOPER);
return core_course_category::make_categories_list('', 0, ' / ');
throw new coding_exception(__FUNCTION__ . '() has been removed. ' .
'Please use \core_course_category::make_categories_list() instead.');
}
/**