Upgrade to 3.1.3
This commit is contained in:
@@ -14,7 +14,7 @@ return [
|
||||
* Sets the default page for the pagination. This will overwrite default pagination.
|
||||
*/
|
||||
'page' => function (int $page = null) {
|
||||
return $page ?? get('page', 1);
|
||||
return get('page', $page ?? 1);
|
||||
},
|
||||
],
|
||||
'methods' => [
|
||||
|
||||
@@ -249,9 +249,7 @@ return [
|
||||
$templates = empty($this->create) === false ? $this->create : $this->templates;
|
||||
|
||||
if (empty($templates) === true) {
|
||||
foreach (glob(App::instance()->root('blueprints') . '/pages/*.yml') as $blueprint) {
|
||||
$templates[] = F::name($blueprint);
|
||||
}
|
||||
$templates = $this->kirby()->blueprints();
|
||||
}
|
||||
|
||||
// convert every template to a usable option array
|
||||
@@ -285,6 +283,8 @@ return [
|
||||
'headline' => $this->headline,
|
||||
'layout' => $this->layout,
|
||||
'link' => $this->link,
|
||||
'max' => $this->max,
|
||||
'min' => $this->min,
|
||||
'size' => $this->size,
|
||||
'sortable' => $this->sortable
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user