mirror of
https://github.com/typecho/typecho.git
synced 2025-03-20 01:49:40 +01:00
fixed #111
This commit is contained in:
parent
fc292e1c0a
commit
02a913f2a0
@ -216,8 +216,11 @@ class Widget_Archive extends Widget_Abstract_Contents
|
||||
{
|
||||
parent::__construct($request, $response, $params);
|
||||
|
||||
$this->parameter->setDefault(array('pageSize' => $this->options->pageSize,
|
||||
'type' => NULL));
|
||||
$this->parameter->setDefault(array(
|
||||
'pageSize' => $this->options->pageSize,
|
||||
'type' => NULL,
|
||||
'checkPermalink' => true
|
||||
));
|
||||
|
||||
/** 用于判断是路由调用还是外部调用 */
|
||||
if (NULL == $this->parameter->type) {
|
||||
@ -599,7 +602,8 @@ class Widget_Archive extends Widget_Abstract_Contents
|
||||
if ('index' == $type // 首页跳转不用处理
|
||||
|| $this->_makeSinglePageAsFrontPage // 自定义首页不处理
|
||||
|| $this->_invokeByFeed // 不要处理feed
|
||||
|| $this->_invokeFromOutside) { // 不要处理外部调用
|
||||
|| $this->_invokeFromOutside // 不要处理外部调用
|
||||
|| !$this->parameter->checkPermalink) { // 强制关闭
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -262,7 +262,9 @@ class Widget_Feedback extends Widget_Abstract_Comments implements Widget_Interfa
|
||||
{
|
||||
/** 回调方法 */
|
||||
$callback = $this->request->type;
|
||||
$this->_content = Typecho_Router::match($this->request->permalink);
|
||||
$this->_content = Typecho_Router::match($this->request->permalink, array(
|
||||
'checkPermalink' => false
|
||||
));
|
||||
|
||||
/** 判断内容是否存在 */
|
||||
if (false !== $this->_content && $this->_content instanceof Widget_Archive &&
|
||||
|
Loading…
x
Reference in New Issue
Block a user