moodle-an-hochschulen / moodle-theme_boost_campus

Moodle 3.x Boost child theme which is intended to meet the needs of university campuses and adds several features and improvements ––– for Moodle 4.x please use our Theme Boost Union
GNU General Public License v3.0
38 stars 25 forks source link

theme_boost_campus_process_flatnav() raises error #35

Closed hamishdewe closed 6 years ago

hamishdewe commented 6 years ago

Each usage of get_user_preferences() in this function throws an error in 3.5. The second parameter should be the default value to return. Removing $USER from the parameters solves the issue.

Kathrin84 commented 6 years ago

Hi @hamishdewe,

thank you very much for raising this issue. You're absolutely correct. I've fixed it here: https://github.com/moodleuulm/moodle-theme_boost_campus/commit/b26f098252ff55829a6476bd110ea8d55e685f2c

Best, Kathrin