Upgrade to 3.6.3

This commit is contained in:
Bastian Allgeier
2022-03-22 10:43:28 +01:00
parent 15da803094
commit f732a03566
275 changed files with 1961 additions and 1126 deletions

View File

@@ -20,13 +20,11 @@ use Kirby\Toolkit\A;
* @package Kirby Cms
* @author Bastian Allgeier <bastian@getkirby.com>
* @link https://getkirby.com
* @copyright Bastian Allgeier GmbH
* @copyright Bastian Allgeier
* @license https://getkirby.com/license
*/
class Page extends ModelWithContent
{
const CLASS_ALIAS = 'page';
use PageActions;
use PageSiblings;
use HasChildren;
@@ -34,6 +32,8 @@ class Page extends ModelWithContent
use HasMethods;
use HasSiblings;
public const CLASS_ALIAS = 'page';
/**
* All registered page methods
*
@@ -1338,7 +1338,7 @@ class Page extends ModelWithContent
'mediaUrl' => $this->mediaUrl(),
'mediaRoot' => $this->mediaRoot(),
'num' => $this->num(),
'parent' => $this->parent() ? $this->parent()->id(): null,
'parent' => $this->parent() ? $this->parent()->id() : null,
'slug' => $this->slug(),
'template' => $this->template(),
'translations' => $this->translations()->toArray(),