Skip to content
Snippets Groups Projects
Commit fd2ebdf3 authored by Alexander Bias's avatar Alexander Bias
Browse files

Regression: The switch role functionality caused a fatal error with some theme configurations

parent 858dc665
No related branches found
No related tags found
No related merge requests found
...@@ -4,6 +4,10 @@ moodle-theme_boost_campus ...@@ -4,6 +4,10 @@ moodle-theme_boost_campus
Changes Changes
------- -------
### Unreleased
* 2021-09-16 - Regression: The switch role functionality caused a fatal error with some theme configurations - Thanks to Klaus Steitz.
### v3.10-r8 ### v3.10-r8
* 2021-08-17 - Bugfix: The timed info banner had a wrong CSS ID - Credits to Tim Schroeder. * 2021-08-17 - Bugfix: The timed info banner had a wrong CSS ID - Credits to Tim Schroeder.
......
...@@ -542,6 +542,9 @@ function theme_boost_campus_show_timed_banner_on_selected_page($now, $timedibsho ...@@ -542,6 +542,9 @@ function theme_boost_campus_show_timed_banner_on_selected_page($now, $timedibsho
function theme_boost_campus_get_course_information_banners() { function theme_boost_campus_get_course_information_banners() {
global $CFG, $COURSE, $PAGE, $USER; global $CFG, $COURSE, $PAGE, $USER;
// Require user library.
require_once($CFG->dirroot.'/user/lib.php');
// Initialize HTML code. // Initialize HTML code.
$html = ''; $html = '';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment