Skip to content

Commit 984de45

Browse files
committed
Merge branch '6.2' of https://github.com/WoltLab/WCF into 6.2
2 parents fae4f93 + 20de11c commit 984de45

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

wcfsetup/install/files/lib/system/style/StyleHandler.class.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,15 @@ public function getStyles()
7272

7373
/**
7474
* Returns the active style.
75-
*
76-
* @return ActiveStyle
7775
*/
78-
public function getStyle()
76+
public function getStyle(): ActiveStyle
7977
{
8078
if ($this->style === null) {
81-
$this->changeStyle();
79+
if (RequestHandler::getInstance()->isACPRequest()) {
80+
$this->style = new ActiveStyle($this->getDefaultStyle());
81+
} else {
82+
$this->changeStyle();
83+
}
8284
}
8385

8486
return $this->style;

0 commit comments

Comments
 (0)