diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2010-03-01 12:47:15 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2010-03-01 12:47:15 +0000 |
commit | d8e8ec2b79c6e7a527f0c1f41f0f74d3dccc3b71 (patch) | |
tree | 7715b173e393cbcbf5c53452209f4a377032e760 /lib/install.php | |
parent | 45ea1a80fa9c7b7eb0c21677962feac9b4bd6c35 (diff) | |
download | ampache-d8e8ec2b79c6e7a527f0c1f41f0f74d3dccc3b71.tar.gz ampache-d8e8ec2b79c6e7a527f0c1f41f0f74d3dccc3b71.tar.bz2 ampache-d8e8ec2b79c6e7a527f0c1f41f0f74d3dccc3b71.zip |
Update defaults for new installs (extending default timeouts) fix installation and PHP warning on no ip history
Diffstat (limited to 'lib/install.php')
-rw-r--r-- | lib/install.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/install.php b/lib/install.php index 0746b062..3e07fcb9 100644 --- a/lib/install.php +++ b/lib/install.php @@ -236,8 +236,8 @@ function install_create_config($web_path,$username,$password,$hostname,$database $config_file = Config::get('prefix') . '/config/ampache.cfg.php'; - // Make sure it's writeable - if (!is_writeable($config_file)) { + // Make sure the directory is writeable OR the empty config file is + if (!is_writeable(Config::get('prefix') . '/config/') AND !is_writeable($config_file)) { /* HINT: Config File */ Error::add('general',sprintf(_('%s is not writeable'),$config_file)); return false; |