Skip to content

Commit a1d0ea6

Browse files
Fix Bug of Invisible Comment Children
1 parent e91c0a3 commit a1d0ea6

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Comment Extension for [Mecha](https://github.com/mecha-cms/mecha)
88
Release Notes
99
-------------
1010

11-
### 1.20.1
11+
### 1.20.2
1212

1313
- Added `comment-body`, `comment-footer`, `comment-form`, `comment-form-tasks`, `comment-header`, `comment-tasks`, `comments-body`, `comments-footer`, `comments-header` and `comments-tasks` hooks.
1414
- Improved comment pagination feature. If there isn’t any comment pagination offset appear in the URL, by default, the current comments chunk in the comments section will be the last comments page.

comment/about.page

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Comment
33
description: Built-in commenting system.
44
author: Taufik Nurrohman
55
type: Markdown
6-
version: 1.20.1
6+
version: 1.20.2
77

88
use:
99
'.\lot\x\alert': 1

comment/engine/r/layout/comment.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
'tasks' => $tasks
4949
], $page, $deep], $comment); ?>
5050
</footer>
51-
<?php if ($deep < ($c['page']['deep'] ?? 0) && $comment->comments->count()): ++$deep; ?>
51+
<?php if ($deep < ($c['page']['deep'] ?? 0) && ($count = $comment->comments->count())): ++$deep; ?>
5252
<section class="comments" data-level="<?= $deep; ?>" id="<?= sprintf($c['anchor'][3], $comment->id); ?>">
5353
<?php foreach ($comment->comments($count) as $v): ?>
5454
<?= self::get(__FILE__, array_replace($lot, [

0 commit comments

Comments
 (0)