Merge pull request #2 from typecho/master

同步最新
This commit is contained in:
ShingChi
2014-03-16 19:51:03 +08:00
58 changed files with 598 additions and 434 deletions
+6 -5
View File
@@ -292,7 +292,7 @@ class Widget_Archive extends Widget_Abstract_Contents
* 评论地址
*
* @access protected
* @return void
* @return string
*/
protected function ___commentUrl()
{
@@ -306,7 +306,7 @@ class Widget_Archive extends Widget_Abstract_Contents
$commentUrl .= '?parent=' . $reply;
}
return $commentUrl;
return $this->security->getTokenUrl($commentUrl);
}
/**
@@ -320,7 +320,7 @@ class Widget_Archive extends Widget_Abstract_Contents
}
/**
* @param $_archiveSlug the $_archiveSlug to set
* @param string $archiveSlug the $_archiveSlug to set
*/
public function setArchiveSlug($archiveSlug)
{
@@ -328,7 +328,7 @@ class Widget_Archive extends Widget_Abstract_Contents
}
/**
* @param $_archiveSingle the $_archiveSingle to set
* @param string $archiveSingle the $_archiveSingle to set
*/
public function setArchiveSingle($archiveSingle)
{
@@ -795,6 +795,7 @@ class Widget_Archive extends Widget_Abstract_Contents
/** 保存密码至cookie */
if ($this->request->isPost() && isset($this->request->protectPassword)) {
$this->security->protect();
Typecho_Cookie::set('protectPassword', $this->request->protectPassword, 0);
}
@@ -1475,7 +1476,7 @@ class Widget_Archive extends Widget_Abstract_Contents
* 获取回响归档对象
*
* @access public
* @return void
* @return Widget_Comments_Ping
*/
public function pings()
{