mirror of
https://github.com/typecho/typecho.git
synced 2025-04-21 18:21:53 +02:00
delete some redundant code in file install.php(config.inc.php as well)
This commit is contained in:
parent
3848176990
commit
4ce7490b3b
23
install.php
23
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') . "');
|
||||
|
@ -217,6 +217,9 @@ class Typecho_Common
|
||||
|
||||
/** 设置异常截获函数 */
|
||||
set_exception_handler(array('Typecho_Common', 'exceptionHandle'));
|
||||
|
||||
/** 载入国际化支持 */
|
||||
require_once 'Typecho/I18n.php';
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user