diff options
Diffstat (limited to 'installer/rcube_install.php')
-rw-r--r-- | installer/rcube_install.php | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/installer/rcube_install.php b/installer/rcube_install.php index 76d6a7f10..9c9794cc2 100644 --- a/installer/rcube_install.php +++ b/installer/rcube_install.php @@ -277,14 +277,13 @@ class rcube_install * * @return boolean True if the file was saved successfully, false if not */ - function save_configfile() + function save_configfile($config) { - if(is_writable(RCUBE_CONFIG_DIR)) - { - return file_put_contents(RCUBE_CONFIG_DIR . 'config.inc.php', $_SESSION['config']); - } + if (is_writable(RCUBE_CONFIG_DIR)) { + return file_put_contents(RCUBE_CONFIG_DIR . 'config.inc.php', $config); + } - return false; + return false; } /** |