Remove `include_path` setting.
This commit is contained in:
joyqi
2021-05-21 16:40:48 +08:00
parent 13ac6f1c70
commit 0e49d186f5
3 changed files with 14 additions and 8 deletions
+2 -7
View File
@@ -20,13 +20,8 @@ define('__TYPECHO_THEME_DIR__', '/usr/themes');
/** 后台路径(相对路径) */
define('__TYPECHO_ADMIN_DIR__', '/admin/');
/** 设置包含路径 */
@set_include_path(get_include_path() . PATH_SEPARATOR .
__TYPECHO_ROOT_DIR__ . '/var' . PATH_SEPARATOR .
__TYPECHO_ROOT_DIR__ . __TYPECHO_PLUGIN_DIR__);
/** 载入API支持 */
require_once 'Typecho/Common.php';
require_once __TYPECHO_ROOT_DIR__ . '/var/Typecho/Common.php';
/** 程序初始化 */
Typecho_Common::init();
@@ -537,7 +532,7 @@ Typecho_Cookie::set('__typecho_lang', $lang);
}
/** 初始化配置文件 */
$lines = array_slice(file(__FILE__), 1, 31);
$lines = array_slice(file(__FILE__), 1, 26);
$lines[] = "
/** 定义数据库参数 */
\$db = new Typecho_Db('{$adapter}', '" . _r('dbPrefix') . "');