Removed deprecated manual merges of default site controller data with specific controller data

This commit is contained in:
Paul Nicoué 2025-07-11 14:55:58 +02:00
parent 0fefc5e2e1
commit 7bc8cd51c0
3 changed files with 11 additions and 23 deletions

View file

@ -1,18 +1,12 @@
<?php
return function ($kirby, $site) {
// Get shared data from default controller (site.php)
$shared = $kirby->controller('site' , compact('site'));
return function ($site) {
// Get CV field content
$cv = $site->cv();
// Return merged arrays containing shared data and current controller data
return A::merge(
$shared,
compact(
'cv',
)
// Return cv controller data
return compact(
'cv',
);
};