Fixed useless arguments
This commit is contained in:
parent
3e99a6336c
commit
0c5fc7e03f
3 changed files with 3 additions and 3 deletions
|
@ -14,7 +14,7 @@ class CommentController
|
|||
|
||||
$page = max(1, $page);
|
||||
$comments = CommentSearchService::getEntities(null, $commentsPerPage, $page);
|
||||
$commentCount = CommentSearchService::getEntityCount(null, $commentsPerPage, $page);
|
||||
$commentCount = CommentSearchService::getEntityCount(null);
|
||||
$pageCount = ceil($commentCount / $commentsPerPage);
|
||||
CommentModel::preloadCommenters($comments);
|
||||
CommentModel::preloadPosts($comments);
|
||||
|
|
|
@ -75,7 +75,7 @@ class PostController
|
|||
}
|
||||
|
||||
$posts = PostSearchService::getEntities($query, $postsPerPage, $page);
|
||||
$postCount = PostSearchService::getEntityCount($query, $postsPerPage, $page);
|
||||
$postCount = PostSearchService::getEntityCount($query);
|
||||
$pageCount = ceil($postCount / $postsPerPage);
|
||||
$page = min($pageCount, $page);
|
||||
PostModel::preloadTags($posts);
|
||||
|
|
|
@ -118,7 +118,7 @@ class UserController
|
|||
|
||||
$page = max(1, $page);
|
||||
$users = UserSearchService::getEntities($sortStyle, $usersPerPage, $page);
|
||||
$userCount = UserSearchService::getEntityCount($sortStyle, $usersPerPage, $page);
|
||||
$userCount = UserSearchService::getEntityCount($sortStyle);
|
||||
$pageCount = ceil($userCount / $usersPerPage);
|
||||
|
||||
$this->context->sortStyle = $sortStyle;
|
||||
|
|
Loading…
Reference in a new issue