mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
722e6ba947
Function add_mod_to_section() has very confusing arguments when object looks like record from table course_modules but field ->section refers to relative section number (course_sections.section). In table course_modules the field section refers to course_sections.id. Also add_mod_to_section() does not update table course_modules and does not call rebuild_course_cache() which developer can forget to do afterwards. - Added function course_add_cm_to_section() - In the core code add_mod_to_section() is replaced with course_add_cm_to_section() - Function add_mod_to_section() is deprecated