Posts made by Tim Hunt

Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
The answer changed in Moodle 3.9. See https://tracker.moodle.org/browse/MDL-47750?focusedCommentId=794744&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-794744 (and I have linked to the comment which explains how web browsers make it very hard to do this).

Anway, in recent Moodle versions, the images should go into moodledata.
Average of ratings: Useful (4)
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

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 smile

Average of ratings: Useful (2)
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
It is very hard to completely stop people doing this. You may think you have made it clear the Friday morning is upgrade time - but Moodle upgrades are a key part of the job. You think about that all the time. Teachers have plenty of other more important things to think about.

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.
Average of ratings: Useful (3)