mirror of
https://github.com/moodle/moodle.git
synced 2025-07-18 12:51:37 +02:00
We were already caching these preferences when a user object is provided to get_user_preferences, or when $USER is provided. This changee swaps get_user_preferences to use the global USER object when the USER->id matches the userid supplied to the function.