Update to Kirby 4.7.0
This commit is contained in:
parent
02a9ab387c
commit
ba25a9a198
509 changed files with 26604 additions and 14872 deletions
|
@ -1,5 +1,6 @@
|
|||
<?php
|
||||
|
||||
use Kirby\Cms\ModelWithContent;
|
||||
use Kirby\Data\Data;
|
||||
use Kirby\Toolkit\A;
|
||||
|
||||
|
@ -36,7 +37,10 @@ return [
|
|||
'parentModel' => function () {
|
||||
if (
|
||||
is_string($this->parent) === true &&
|
||||
$model = $this->model()->query($this->parent, 'Kirby\Cms\Model')
|
||||
$model = $this->model()->query(
|
||||
$this->parent,
|
||||
ModelWithContent::class
|
||||
)
|
||||
) {
|
||||
return $model;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue