Fix to show theme for each course

The select theme for specific course not loading. The platform theme still appear. This fix, solve that bug.
pull/3711/head
fabiowoj 5 years ago committed by GitHub
parent efa753fceb
commit 6854d0f2ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      main/inc/lib/api.lib.php

@ -5222,7 +5222,7 @@ function api_get_visual_theme()
$visual_theme = null;
}
if (!isset($visual_theme)) {
$cacheAvailable = api_get_configuration_value('apc');
$userThemeAvailable = api_get_setting('user_selected_theme') == 'true';
$courseThemeAvailable = api_get_setting('allow_course_theme') == 'true';
@ -5307,7 +5307,7 @@ function api_get_visual_theme()
if ($useCache) {
apcu_store($apcVar, $visual_theme, 120);
}
}
return $visual_theme;
}

Loading…
Cancel
Save