Skip to content

Commit

Permalink
Don’t pass kirby to the site model
Browse files Browse the repository at this point in the history
  • Loading branch information
bastianallgeier committed Dec 18, 2023
1 parent 0109992 commit 62ee17c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Cms/App.php
Original file line number Diff line number Diff line change
Expand Up @@ -1482,9 +1482,7 @@ protected function setRoles(array $roles = null): static
protected function setSite(Site|array $site = null): static
{
if (is_array($site) === true) {
$site = new Site($site + [
'kirby' => $this
]);
$site = new Site($site);
}

$this->site = $site;
Expand Down

0 comments on commit 62ee17c

Please sign in to comment.