From 6e8c0f6c898ba7310c15458653085b1d0e57b1aa Mon Sep 17 00:00:00 2001
From: Damien Seguy <damien.seguy@gmail.com>
Date: Sun, 2 Nov 2014 22:28:13 +0100
Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E6=97=A0=E7=94=A8=E7=9A=84?=
 =?UTF-8?q?=E5=8F=98=E9=87=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 var/Widget/Comments/Archive.php | 2 --
 var/Widget/Feedback.php         | 4 ++--
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/var/Widget/Comments/Archive.php b/var/Widget/Comments/Archive.php
index 5f0c810e..6a056398 100644
--- a/var/Widget/Comments/Archive.php
+++ b/var/Widget/Comments/Archive.php
@@ -101,8 +101,6 @@ class Widget_Comments_Archive extends Widget_Abstract_Comments
                 $commentClass .= ' comment-by-user';
             }
         }
-        
-        $commentLevelClass = $this->levels > 0 ? ' comment-child' : ' comment-parent';
 ?>
 <li itemscope itemtype="http://schema.org/UserComments" id="<?php $this->theId(); ?>" class="comment-body<?php
     if ($this->levels > 0) {
diff --git a/var/Widget/Feedback.php b/var/Widget/Feedback.php
index a0c2c9b6..ad4fd96c 100644
--- a/var/Widget/Feedback.php
+++ b/var/Widget/Feedback.php
@@ -114,7 +114,7 @@ class Widget_Feedback extends Widget_Abstract_Comments implements Widget_Interfa
         
         /** 评论者之前须有评论通过了审核 */
         if (!$this->options->commentsRequireModeration && $this->options->commentsWhitelist) {
-            if ($commentApprovedNum = $this->size($this->select()->where('author = ? AND mail = ? AND status = ?', $comment['author'], $comment['mail'], 'approved'))) {
+            if ($this->size($this->select()->where('author = ? AND mail = ? AND status = ?', $comment['author'], $comment['mail'], 'approved'))) {
                 $comment['status'] = 'approved';
             } else {
                 $comment['status'] = 'waiting';
@@ -211,7 +211,7 @@ class Widget_Feedback extends Widget_Abstract_Comments implements Widget_Interfa
         $trackback = $this->pluginHandle()->trackback($trackback, $this->_content);
 
         /** 添加引用 */
-        $trackbackId = $this->insert($trackback);
+        $this->insert($trackback);
 
         /** 评论完成接口 */
         $this->pluginHandle()->finishTrackback($this);