Skip to content

Commit b19dc72

Browse files
committed
Force block config to be return as array
fix wintercms#23
1 parent b46e86a commit b19dc72

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

classes/Block.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
use Cms\Classes\Controller;
1010
use Cms\Classes\PartialStack;
1111
use Illuminate\Support\Facades\Lang;
12-
use Illuminate\Support\Fluent;
1312
use Winter\Storm\Exception\SystemException;
1413

1514
/**
@@ -107,7 +106,7 @@ public static function renderAll(array $blocks, ?Controller $controller = null):
107106
$config = static::getDefaultConfig($block['_group']);
108107
}
109108

110-
$partialData['config'] = new Fluent($config);
109+
$partialData['config'] = json_decode(json_encode($config), true);
111110

112111
$content .= $controller->renderPartial($block['_group'] . '.block', $partialData);
113112
}

0 commit comments

Comments
 (0)