mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 21:49:15 +01:00
8cba8d1a58
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.