Pluralise Views.
This commit is contained in:
parent
2d0f083e1a
commit
69e4d05be6
2 changed files with 2 additions and 2 deletions
|
@ -315,7 +315,7 @@ foreach($postInfos as $postInfo) {
|
||||||
$canReply = !$topicIsArchived && !$topicIsLocked && !$topicIsDeleted && $perms->check(Perm::F_POST_CREATE);
|
$canReply = !$topicIsArchived && !$topicIsLocked && !$topicIsDeleted && $perms->check(Perm::F_POST_CREATE);
|
||||||
|
|
||||||
if(!$forum->checkUserHasReadTopic($currentUser, $topicInfo))
|
if(!$forum->checkUserHasReadTopic($currentUser, $topicInfo))
|
||||||
$forum->incrementTopicView($topicInfo);
|
$forum->incrementTopicViews($topicInfo);
|
||||||
|
|
||||||
$forum->updateUserReadTopic($currentUser, $topicInfo);
|
$forum->updateUserReadTopic($currentUser, $topicInfo);
|
||||||
|
|
||||||
|
|
|
@ -795,7 +795,7 @@ class Forum {
|
||||||
$stmt->execute();
|
$stmt->execute();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function incrementTopicView(ForumTopicInfo|string $topicInfo): void {
|
public function incrementTopicViews(ForumTopicInfo|string $topicInfo): void {
|
||||||
if($topicInfo instanceof ForumTopicInfo)
|
if($topicInfo instanceof ForumTopicInfo)
|
||||||
$topicInfo = $topicInfo->getId();
|
$topicInfo = $topicInfo->getId();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue