moodle-checklist icon indicating copy to clipboard operation
moodle-checklist copied to clipboard

error() was deprecated back in 2015

Open sharpchi opened this issue 1 week ago • 1 comments

Noticed the use of error() in a couple of places, this was removed some time ago:

------ --------------------------------------------------------------------- 
  Line   mod/checklist/locallib.php                                  
 ------ ---------------------------------------------------------------------                  
  2002   Function error not found.                                            
  2736   Function error not found.                                            
 ------ --------------------------------------------------------------------- 

Fix:

throw new moodle_exception();

sharpchi avatar Feb 19 '25 13:02 sharpchi