Skip to content

Commit e1af3c8

Browse files
authored
Merge pull request #377 from dereuromark/5.x-fixes
5.x fixes
2 parents f5f0fc9 + 53649e4 commit e1af3c8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/View/Helper/AssetCompressHelper.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,10 @@ public function assetConfig(?AssetConfig $config = null): ?AssetConfig
116116
*/
117117
protected function factory(): Factory
118118
{
119-
if (empty($this->factory)) {
119+
if (!isset($this->factory)) {
120+
if (!isset($this->config)) {
121+
$this->assetConfig();
122+
}
120123
$this->config->theme($this->getView()->getTheme());
121124
$this->factory = new Factory($this->config);
122125
}

0 commit comments

Comments
 (0)