Commit f268f560 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Use correct theme display names on view theme dropdown for users in an institution


Signed-off-by: default avatarRichard Mansfield <richardm@catalyst.net.nz>
parent 8be0121f
......@@ -555,10 +555,7 @@ function get_user_accessible_themes() {
if ($institutions = $USER->get('institutions')) {
// Get themes for all of this users institutions
foreach ($institutions AS $i) {
$themelist = get_institution_themes($i->institution);
foreach ($themelist AS $subdir => $theme) {
$themes[$subdir] = isset($theme->displayname) ? $theme->displayname : $subdir;
}
$themes = array_merge($themes, get_institution_themes($i->institution));
}
}
else {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment