Upgrade to 3.7.0

This commit is contained in:
Bastian Allgeier
2022-06-27 10:02:22 +02:00
parent 0751a6510d
commit 1c22148d7b
674 changed files with 5052 additions and 3082 deletions

5
kirby/config/sections/mixins/pagination.php Normal file → Executable file
View File

@@ -1,5 +1,6 @@
<?php
use Kirby\Cms\App;
use Kirby\Toolkit\Pagination;
return [
@@ -14,7 +15,7 @@ return [
* Sets the default page for the pagination. This will overwrite default pagination.
*/
'page' => function (int $page = null) {
return get('page', $page);
return App::instance()->request()->get('page', $page);
},
],
'methods' => [
@@ -31,6 +32,6 @@ return [
'page' => $pagination->page(),
'total' => $pagination->total(),
];
},
}
]
];