diff --git a/components/ILIAS/Dashboard/classes/class.ilDashboardPageGUI.php b/components/ILIAS/Dashboard/classes/class.ilDashboardPageGUI.php index 2d58274d6b41..7064c404a73e 100644 --- a/components/ILIAS/Dashboard/classes/class.ilDashboardPageGUI.php +++ b/components/ILIAS/Dashboard/classes/class.ilDashboardPageGUI.php @@ -42,7 +42,9 @@ public function __construct(string $lang) public function afterConstructor(): void { $this->ctrl->setParameter($this, $this->getPageObject()->getParentType() . '_lang', $this->getLanguage()); - $this->tpl->addCss(ilObjStyleSheet::getContentStylePath(ilObjStyleSheet::lookupObjectStyle($this->getId()))); + $style_id = ilObjStyleSheet::lookupObjectStyle($this->getId()); + $this->setStyleId($style_id); + $this->tpl->addCss(ilObjStyleSheet::getContentStylePath($style_id)); } public function finishEditing(): void