Skip to content

Commit

Permalink
Internal: Fix to get course setting value to get visual theme - refs …
Browse files Browse the repository at this point in the history
…BT#21621
  • Loading branch information
AngelFQC committed Jul 1, 2024
1 parent d67702b commit 7ed9ca3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/CoreBundle/ServiceHelper/ThemeHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ public function getVisualTheme(): string
if ($course) {
$this->settingsCourseManager->setCourse($course);

$visualTheme = $this->settingsCourseManager->getSetting('course_theme');
$visualTheme = $this->settingsCourseManager->getCourseSettingValue('course_theme');

if (1 === (int) $this->settingsCourseManager->getSetting('allow_learning_path_theme')) {
if (1 === (int) $this->settingsCourseManager->getCourseSettingValue('allow_learning_path_theme')) {
$visualTheme = $lp_theme_css;
}
}
Expand Down

0 comments on commit 7ed9ca3

Please sign in to comment.