mirror of
https://github.com/typecho/typecho.git
synced 2025-01-17 04:28:17 +01:00
fix #244
This commit is contained in:
parent
13f6adad4d
commit
c6a468fdcb
@ -516,7 +516,7 @@ list($prefixVersion, $suffixVersion) = explode('/', $currentVersion);
|
||||
$lines[] = "
|
||||
/** 定义数据库参数 */
|
||||
\$db = new Typecho_Db('{$adapter}', '" . _r('dbPrefix') . "');
|
||||
\$db->addServer(" . (!isset($config) ? var_export($dbConfig, true) : $config) . ", Typecho_Db::READ | Typecho_Db::WRITE);
|
||||
\$db->addServer(" . (empty($config) ? var_export($dbConfig, true) : $config) . ", Typecho_Db::READ | Typecho_Db::WRITE);
|
||||
Typecho_Db::set(\$db);
|
||||
";
|
||||
$contents = implode('', $lines);
|
||||
|
Loading…
x
Reference in New Issue
Block a user