当首页被替换为一个具体页面时,让用户可以使用另一个路径作为文章列表,而不是直接消失

This commit is contained in:
joyqi
2013-11-18 00:00:51 +08:00
parent fc5afc23bc
commit 666e78868e
9 changed files with 125 additions and 39 deletions
+17
View File
@@ -987,5 +987,22 @@ Typecho_Date::setTimezoneOffset($options->timezone);
))
->where('type = ? AND status = ?', 'page', 'draft'));
}
/**
* v0_9r13_11_17
*
* @param mixed $db
* @param mixed $options
* @static
* @access public
* @return void
*/
public static function v0_9r13_11_17($db, $options)
{
Helper::addRoute('archive', '/blog/', 'Widget_Archive', 'render', 'index');
Helper::addRoute('archive_page', '/blog/[page:digital]/', 'Widget_Archive', 'render', 'index_page');
$db->query($db->insert('table.options')
->rows(array('name' => 'frontArchive', 'user' => 0, 'value' => 0)));
}
}