Skip to content

Commit

Permalink
Allow to get site by key
Browse files Browse the repository at this point in the history
  • Loading branch information
aerni committed Feb 21, 2024
1 parent 78d8f4b commit ac9da0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/View/Cascade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down

0 comments on commit ac9da0b

Please sign in to comment.