Skip to content

Commit

Permalink
💩 Fix: 评论列表缺失 #comments id #70
Browse files Browse the repository at this point in the history
  • Loading branch information
BigCoke233 authored Jul 13, 2020
1 parent 97b2966 commit eb76e46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions includes/comments.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
<?php $this->comments()->to($comments); ?>
<?php if($this->fields->commentShow == 0)://如果显示评论列表 ?>
<?php if ($comments->have())://如果有评论 则显示 ?>
<div class="comment-container">
<div class="comment-container" id="comments">
<h3 class="comment-title" id="response"><?php $this->commentsNum(_t('暂无评论'), _t('已有 1 条评论'), _t('已有 %d 条评论')); ?></h3>
<?php $comments->listComments(array(
'before' => '<div class="comment-list" role="list">',
Expand Down Expand Up @@ -109,4 +109,4 @@
</div>
</div>
<?php //兼容 typecho 反垃圾
if ($this->options->commentsAntiSpam) { Comments::AntiSpam($this->respondId, Typecho_Common::shuffleScriptVar($this->security->getToken(preg_replace('/\??&?_pjax=[^&]+/i','',$this->request->getRequestUrl())))); } ?>
if ($this->options->commentsAntiSpam) { Comments::AntiSpam($this->respondId, Typecho_Common::shuffleScriptVar($this->security->getToken(preg_replace('/\??&?_pjax=[^&]+/i','',$this->request->getRequestUrl())))); } ?>

0 comments on commit eb76e46

Please sign in to comment.