Merge pull request #331 from dseguy/master

去掉无用的变量
This commit is contained in:
joyqi 2015-08-27 21:38:06 +08:00
commit b257d053f6
2 changed files with 2 additions and 4 deletions

View File

@ -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) {

View File

@ -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);