Tim Hunt
Posts made by Tim Hunt
Anway, in recent Moodle versions, the images should go into moodledata.
If you are working with Moodle code, then you need to be able to answer questions like this all the time.
The slickest answer is to use an IDE like VSCode or PHPStorm. Then, when I am looking at the code, I can just hold down CTRL and click on the function or class name to jump straight to where it is defined. PHPStorm's full-text search is also unbelievable fast.
If you don't want to install an IDE (but, really you do) then you need some other way to search all the files. https://git-scm.com/docs/git-grep is very fast. Other solutions exist.
Also, the search at github is good. E.g. try searching for question_utils at https://github.com/moodle/moodle/. Or, at https://github.com/moodle/moodle/blob/511a87f5fc357f18a4c53911f6e6c7f7b526246e/question/type/essay/question.php#L97, try clicking on the function name to_plain_text
So, the best way to handle this is to detect it, and then talk to that teacher individually, to re-enforce the general messages.
And, a tool you can use to help with that https://moodle.org/plugins/report_customsql. You can make a report which finds quizzes which have a close date on a Friday, and you can set that report to run every day, and email you. Then, pretty much as soon as someone creates a quiz with settings you don't like, you can reach out and ask them to change.