From 62ee17c8e9696f64b13487b07124e8c8de9de2e4 Mon Sep 17 00:00:00 2001 From: Bastian Allgeier Date: Mon, 18 Dec 2023 09:46:33 +0100 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20pass=20kirby=20to=20the=20site?= =?UTF-8?q?=20model?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Cms/App.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Cms/App.php b/src/Cms/App.php index a011fbe9fa..5d9db4ee4e 100644 --- a/src/Cms/App.php +++ b/src/Cms/App.php @@ -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;