p= -> page= for forum categories.
This commit is contained in:
parent
06faf86d05
commit
504154ac38
1 changed files with 2 additions and 2 deletions
|
@ -171,7 +171,7 @@ class ForumCategoriesRoutes implements RouteHandler, UrlSource {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[HttpGet('/forum/([0-9]+)')]
|
#[HttpGet('/forum/([0-9]+)')]
|
||||||
#[UrlFormat('forum-category', '/forum/<forum>', ['p' => '<page>'])]
|
#[UrlFormat('forum-category', '/forum/<forum>', ['page' => '<page>'])]
|
||||||
public function getCategory(HttpResponseBuilder $response, HttpRequest $request, string $catId) {
|
public function getCategory(HttpResponseBuilder $response, HttpRequest $request, string $catId) {
|
||||||
try {
|
try {
|
||||||
$category = $this->forum->categories->getCategory(categoryId: $catId);
|
$category = $this->forum->categories->getCategory(categoryId: $catId);
|
||||||
|
@ -196,7 +196,7 @@ class ForumCategoriesRoutes implements RouteHandler, UrlSource {
|
||||||
categoryInfo: $category,
|
categoryInfo: $category,
|
||||||
global: true,
|
global: true,
|
||||||
deleted: $perms->check(Perm::F_POST_DELETE_ANY) ? null : false
|
deleted: $perms->check(Perm::F_POST_DELETE_ANY) ? null : false
|
||||||
), 20, 'p');
|
), 20);
|
||||||
if(!$pagination->validOffset)
|
if(!$pagination->validOffset)
|
||||||
return 404;
|
return 404;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue