Skip to content

Commit

Permalink
Merge pull request typecho#331 from dseguy/master
Browse files Browse the repository at this point in the history
去掉无用的变量
  • Loading branch information
joyqi committed Aug 27, 2015
2 parents ce8bb8c + 6e8c0f6 commit b257d05
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions var/Widget/Comments/Archive.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,6 @@ private function threadedCommentsCallback()
$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) {
Expand Down
4 changes: 2 additions & 2 deletions var/Widget/Feedback.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ private function comment()

/** 评论者之前须有评论通过了审核 */
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';
Expand Down Expand Up @@ -211,7 +211,7 @@ private function trackback()
$trackback = $this->pluginHandle()->trackback($trackback, $this->_content);

/** 添加引用 */
$trackbackId = $this->insert($trackback);
$this->insert($trackback);

/** 评论完成接口 */
$this->pluginHandle()->finishTrackback($this);
Expand Down

0 comments on commit b257d05

Please sign in to comment.