Upgrade to 3.7.0

This commit is contained in:
Bastian Allgeier
2022-06-27 10:02:22 +02:00
parent 0751a6510d
commit 1c22148d7b
674 changed files with 5052 additions and 3082 deletions

4
kirby/src/Cms/Items.php Normal file → Executable file
View File

@@ -38,7 +38,7 @@ class Items extends Collection
public function __construct($objects = [], array $options = [])
{
$this->options = $options;
$this->parent = $options['parent'] ?? site();
$this->parent = $options['parent'] ?? App::instance()->site();
parent::__construct($objects, $this->parent);
}
@@ -55,7 +55,7 @@ class Items extends Collection
{
$options = array_merge([
'options' => [],
'parent' => site(),
'parent' => App::instance()->site(),
], $params);
if (empty($items) === true || is_array($items) === false) {