mirror of
https://github.com/moodle/moodle.git
synced 2025-03-07 01:10:02 +01: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.