diff options
author | Thomas Bruederli <thomas@roundcube.net> | 2013-07-17 21:38:00 +0200 |
---|---|---|
committer | Thomas Bruederli <thomas@roundcube.net> | 2013-07-17 21:38:00 +0200 |
commit | fd6b193c6e072339b5012945aae8b6aa2c0f95b7 (patch) | |
tree | 8e330cf794c441a40aaf45ed8705fc44850c11af /installer/rcube_install.php | |
parent | d7628787523e9a6967f07c809859a396103b801a (diff) |
Fix codestyle and indentation; use new save function in update script
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; } /** |