Upgrade to 3.4.4

This commit is contained in:
Bastian Allgeier
2020-10-06 10:23:02 +02:00
parent c091f04115
commit 0b80361a79
53 changed files with 976 additions and 83 deletions

View File

@@ -48,7 +48,7 @@ return [
'pattern' => 'pages/(:any)/children',
'method' => 'GET',
'action' => function (string $id) {
return $this->page($id)->children();
return $this->pages($id, $this->requestQuery('status'));
}
],
[
@@ -62,13 +62,7 @@ return [
'pattern' => 'pages/(:any)/children/search',
'method' => 'GET|POST',
'action' => function (string $id) {
$pages = $this->page($id)->children();
if ($this->requestMethod() === 'GET') {
return $pages->search($this->requestQuery('q'));
} else {
return $pages->query($this->requestBody());
}
return $this->searchPages($id);
}
],
[

View File

@@ -22,7 +22,7 @@ return [
'pattern' => 'site/children',
'method' => 'GET',
'action' => function () {
return $this->site()->children();
return $this->pages(null, $this->requestQuery('status'));
}
],
[
@@ -34,9 +34,9 @@ return [
],
[
'pattern' => 'site/children/search',
'method' => 'POST',
'method' => 'GET|POST',
'action' => function () {
return $this->site()->children()->query($this->requestBody());
return $this->searchPages();
}
],
[