diff options
| author | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2026-02-10 10:39:08 +0100 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2026-02-10 10:39:37 +0100 |
| commit | 91b54b3562026568ab63b43ea48897f05d484449 (patch) | |
| tree | f0ded60b7253e9681057d11e90ce636426d0b95f | |
| parent | 3c0331c8f3b5cf96b1078aa376888972b784ed2c (diff) | |
show course avatar on details page when not member of course, fixes #6223
Merge request studip/studip!4711
| -rw-r--r-- | app/controllers/course/details.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/controllers/course/details.php b/app/controllers/course/details.php index 1c9b034..7efee90 100644 --- a/app/controllers/course/details.php +++ b/app/controllers/course/details.php @@ -203,6 +203,10 @@ class Course_DetailsController extends AuthenticatedController $sidebar = Sidebar::Get(); + if (!Course::findCurrent()) { + $sidebar->setContextAvatar(CourseAvatar::getAvatar($this->course->id)); + } + if ($GLOBALS['SessionSeminar'] === $this->course->id) { Navigation::activateItem('/course/main/details'); } else { |
