mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 18:51:41 +09:00
Only re-create old config file at install time
This commit is contained in:
parent
ede85adf24
commit
1eced59239
2 changed files with 6 additions and 5 deletions
|
|
@ -530,11 +530,6 @@ class Context
|
|||
// Save old format to Context instance.
|
||||
self::$_instance->allow_rewrite = $config['use_rewrite'];
|
||||
self::$_instance->db_info = $db_info;
|
||||
if (!file_exists($old_config_file = self::getConfigFile()))
|
||||
{
|
||||
$buff = '<?php' . "\n" . '$db_info = ' . Rhymix\Framework\Config::serialize($db_info) . ';' . "\n";
|
||||
FileHandler::writeFile($old_config_file, $buff);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -848,6 +843,10 @@ class Context
|
|||
*/
|
||||
public static function setLangType($lang_type = 'ko')
|
||||
{
|
||||
if (!self::$_instance->db_info)
|
||||
{
|
||||
self::$_instance->db_info = new stdClass;
|
||||
}
|
||||
self::$_instance->db_info->lang_type = $lang_type;
|
||||
self::$_instance->lang_type = $lang_type;
|
||||
self::set('lang_type', $lang_type);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue