1. 在编辑器非全屏状态下,禁用tab插入空格,以便使用tab跳转输入聚焦
2. 修正一个路由错误
This commit is contained in:
+16
-2
@@ -686,6 +686,20 @@ class Widget_Archive extends Widget_Abstract_Contents
|
||||
$this->pluginHandle()->indexHandle($this, $select);
|
||||
}
|
||||
|
||||
/**
|
||||
* 默认的非首页归档处理
|
||||
*
|
||||
* @access private
|
||||
* @param Typecho_Db_Query $select 查询对象
|
||||
* @param boolean $hasPushed 是否已经压入队列
|
||||
* @return void
|
||||
* @throws Typecho_Widget_Exception
|
||||
*/
|
||||
private function archiveEmptyHandle(Typecho_Db_Query $select, &$hasPushed)
|
||||
{
|
||||
throw new Typecho_Widget_Exception(_t('请求的地址不存在'), 404);
|
||||
}
|
||||
|
||||
/**
|
||||
* 404页面处理
|
||||
*
|
||||
@@ -1250,8 +1264,8 @@ class Widget_Archive extends Widget_Abstract_Contents
|
||||
$handles = array(
|
||||
'index' => 'indexHandle',
|
||||
'index_page' => 'indexHandle',
|
||||
'archive' => 'error404Handle',
|
||||
'archive_page' => 'error404Handle',
|
||||
'archive' => 'archiveEmptyHandle',
|
||||
'archive_page' => 'archiveEmptyHandle',
|
||||
404 => 'error404Handle',
|
||||
'single' => 'singleHandle',
|
||||
'page' => 'singleHandle',
|
||||
|
||||
Reference in New Issue
Block a user