过滤非中文评论
This commit is contained in:
浪子 2024-07-26 17:19:35 +08:00
parent acb3f7e9e5
commit 52f8e45de0
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
<div class="post--ingle__comments">
<?php $this->comments()->to($comments); ?>
<?php if($this->allow('comment')): ?>
<?php if($this->allow('comment') && stripos($_SERVER['HTTP_ACCEPT_LANGUAGE'], 'zh') > -1): ?>
<?php if ($this->is('attachment')) : ?>
<?php else: ?>
<h3 class="comments--title" id="comments">