Upgrade to 3.6.1
This commit is contained in:
@@ -151,7 +151,7 @@ class Pages extends Collection
|
||||
*/
|
||||
public static function factory(array $pages, Model $model = null, bool $draft = false)
|
||||
{
|
||||
$model = $model ?? App::instance()->site();
|
||||
$model ??= App::instance()->site();
|
||||
$children = new static([], $model);
|
||||
$kirby = $model->kirby();
|
||||
|
||||
|
Reference in New Issue
Block a user