summaryrefslogtreecommitdiff
path: root/installer/rcube_install.php
diff options
context:
space:
mode:
authorThomas Bruederli <thomas@roundcube.net>2013-07-17 21:38:00 +0200
committerThomas Bruederli <thomas@roundcube.net>2013-07-17 21:38:00 +0200
commitfd6b193c6e072339b5012945aae8b6aa2c0f95b7 (patch)
tree8e330cf794c441a40aaf45ed8705fc44850c11af /installer/rcube_install.php
parentd7628787523e9a6967f07c809859a396103b801a (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.php11
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;
}
/**