From 504154ac381f5d8abf1f738ac0b7c49f44a70aaf Mon Sep 17 00:00:00 2001 From: flashwave Date: Fri, 20 Dec 2024 00:10:20 +0000 Subject: [PATCH] p= -> page= for forum categories. --- src/Forum/ForumCategoriesRoutes.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Forum/ForumCategoriesRoutes.php b/src/Forum/ForumCategoriesRoutes.php index bc37c43..148c7fe 100644 --- a/src/Forum/ForumCategoriesRoutes.php +++ b/src/Forum/ForumCategoriesRoutes.php @@ -171,7 +171,7 @@ class ForumCategoriesRoutes implements RouteHandler, UrlSource { } #[HttpGet('/forum/([0-9]+)')] - #[UrlFormat('forum-category', '/forum/', ['p' => ''])] + #[UrlFormat('forum-category', '/forum/', ['page' => ''])] public function getCategory(HttpResponseBuilder $response, HttpRequest $request, string $catId) { try { $category = $this->forum->categories->getCategory(categoryId: $catId); @@ -196,7 +196,7 @@ class ForumCategoriesRoutes implements RouteHandler, UrlSource { categoryInfo: $category, global: true, deleted: $perms->check(Perm::F_POST_DELETE_ANY) ? null : false - ), 20, 'p'); + ), 20); if(!$pagination->validOffset) return 404;