From fd6b193c6e072339b5012945aae8b6aa2c0f95b7 Mon Sep 17 00:00:00 2001 From: Thomas Bruederli Date: Wed, 17 Jul 2013 21:38:00 +0200 Subject: Fix codestyle and indentation; use new save function in update script --- installer/rcube_install.php | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'installer/rcube_install.php') 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; } /** -- cgit v1.2.3