From ac9da0b73565a3541781cc312824c0336ed4ef84 Mon Sep 17 00:00:00 2001 From: Michael Aerni Date: Wed, 21 Feb 2024 18:02:17 -0500 Subject: [PATCH] Allow to get site by key --- src/View/Cascade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/View/Cascade.php b/src/View/Cascade.php index 4c8d2c32b9..d4023948e9 100644 --- a/src/View/Cascade.php +++ b/src/View/Cascade.php @@ -206,7 +206,7 @@ private function contextualVariables() 'old' => Arr::sanitize(old(null, [])), 'site' => $this->site, - 'sites' => Facades\Site::all()->values(), + 'sites' => Facades\Site::all(), 'homepage' => $this->site->url(), 'is_homepage' => $this->site->absoluteUrl() == $this->request->url(), 'cp_url' => cp_route('index'),