justinhunt / moodle-filter_poodll

The PoodLL Filter
6 stars 17 forks source link

call to a deprecated function get_all_mods that trigger a coding error #25

Open cperves opened 7 years ago

cperves commented 7 years ago

Hello, l.717 of classes/dataset_manager.php call to get_all_mods can be replaced by $mods = get_fast_modinfo($courseorid)->get_cms(); $modnames = get_module_types_names(); $modnamesplural = get_module_types_names(true); $modnamesused = get_fast_modinfo($courseorid)->get_used_module_names();

Sincerely

cperves commented 7 years ago

get_all_sections($courseid) must be changed by get_fast_modinfo($courseid)->get_section_info_all() l.713