do not give the 'can't write config file' error when the config file doesn't exsist

remotes/origin/stable
Robin 14 years ago
parent 540963060a
commit 3d546db141

@ -152,7 +152,7 @@ class OC_UTIL {
global $CONFIG_BACKUPDIRECTORY;
global $CONFIG_ENABLEBACKUP;
$error='';
$f=@fopen($SERVERROOT.'/config/config.php','a+');
$f=@fopen($SERVERROOT.'/config/config.php','w+');
if(!$f) $error.='Error: Config file (config/config.php) is not writable for the webserver.<br/>';
@fclose($f);
if(!is_callable('sqlite_open') and !is_callable('mysql_connect')){

Loading…
Cancel
Save