Skip to content

Commit

Permalink
Merge branch 'develop' into wip-laravel-11
Browse files Browse the repository at this point in the history
  • Loading branch information
mjauvin committed Jul 3, 2024
2 parents 4076d17 + 12a8562 commit 8c38ed7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/cms/classes/ComponentManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ public function makeComponent($name, $cmsObject = null, $properties = [], $isSof
}

if (class_exists($className)) {
$component = App::make($className, [$cmsObject, $properties]);
$component = App::make($className, ['cmsObject' => $cmsObject, 'properties' => $properties]);
$component->name = $name;

return $component;
Expand Down
2 changes: 1 addition & 1 deletion modules/cms/widgets/ComponentList.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ protected function getData()
foreach ($components as $componentInfo) {
$className = $componentInfo->className;
$alias = $componentInfo->alias;
$component = App::make($className, [null, []]);
$component = App::make($className);

if ($component->isHidden) {
continue;
Expand Down

0 comments on commit 8c38ed7

Please sign in to comment.