Pluralise Views.

This commit is contained in:
flash 2023-09-06 11:19:54 +00:00
parent 2d0f083e1a
commit 69e4d05be6
2 changed files with 2 additions and 2 deletions

View file

@ -315,7 +315,7 @@ foreach($postInfos as $postInfo) {
$canReply = !$topicIsArchived && !$topicIsLocked && !$topicIsDeleted && $perms->check(Perm::F_POST_CREATE);
if(!$forum->checkUserHasReadTopic($currentUser, $topicInfo))
$forum->incrementTopicView($topicInfo);
$forum->incrementTopicViews($topicInfo);
$forum->updateUserReadTopic($currentUser, $topicInfo);

View file

@ -795,7 +795,7 @@ class Forum {
$stmt->execute();
}
public function incrementTopicView(ForumTopicInfo|string $topicInfo): void {
public function incrementTopicViews(ForumTopicInfo|string $topicInfo): void {
if($topicInfo instanceof ForumTopicInfo)
$topicInfo = $topicInfo->getId();