diff --git a/install.php b/install.php index 8abafc45..31265a0f 100644 --- a/install.php +++ b/install.php @@ -28,27 +28,6 @@ __TYPECHO_ROOT_DIR__ . __TYPECHO_PLUGIN_DIR__); /** 载入API支持 */ require_once 'Typecho/Common.php'; -/** 载入Response支持 */ -require_once 'Typecho/Response.php'; - -/** 载入配置支持 */ -require_once 'Typecho/Config.php'; - -/** 载入异常支持 */ -require_once 'Typecho/Exception.php'; - -/** 载入插件支持 */ -require_once 'Typecho/Plugin.php'; - -/** 载入国际化支持 */ -require_once 'Typecho/I18n.php'; - -/** 载入数据库支持 */ -require_once 'Typecho/Db.php'; - -/** 载入路由器支持 */ -require_once 'Typecho/Router.php'; - /** 程序初始化 */ Typecho_Common::init(); @@ -558,7 +537,7 @@ Typecho_Cookie::set('__typecho_lang', $lang); } /** 初始化配置文件 */ - $lines = array_slice(file(__FILE__), 1, 52); + $lines = array_slice(file(__FILE__), 1, 31); $lines[] = " /** 定义数据库参数 */ \$db = new Typecho_Db('{$adapter}', '" . _r('dbPrefix') . "'); diff --git a/var/Typecho/Common.php b/var/Typecho/Common.php index 4f348575..bd95322e 100644 --- a/var/Typecho/Common.php +++ b/var/Typecho/Common.php @@ -217,6 +217,9 @@ class Typecho_Common /** 设置异常截获函数 */ set_exception_handler(array('Typecho_Common', 'exceptionHandle')); + + /** 载入国际化支持 */ + require_once 'Typecho/I18n.php'; } /**