Is there a way to override in a plugin a Moodle core function ?
For example, I would like to override the function get_max_upload_sizes
that is called at
/admin/settings/security.php:30
. This function is located at /lib/moodlelib.php:6186
.
In a more general way : what's the good practice when you need to perform that kind of stuff in Moodle (I don't want to hack the core file)?