diff options
author | Robin <robin@Amaya.(none)> | 2010-03-15 15:55:50 +0100 |
---|---|---|
committer | Robin <robin@Amaya.(none)> | 2010-03-15 15:55:50 +0100 |
commit | cd96e2a313047edc84b6e1010ceebebfce19ba32 (patch) | |
tree | cec4e7fb4e20e3619a6666a52aca7e19ab32430c /config | |
parent | 35b9aabd0185b1e3dffac7a8138b3940cca64f72 (diff) | |
download | nextcloud-server-cd96e2a313047edc84b6e1010ceebebfce19ba32.tar.gz nextcloud-server-cd96e2a313047edc84b6e1010ceebebfce19ba32.zip |
fix bug where siteroot was not configuredcd
Diffstat (limited to 'config')
-rwxr-xr-x | config/config.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/config/config.php b/config/config.php index 341a1321387..8470ad3f24b 100755 --- a/config/config.php +++ b/config/config.php @@ -26,7 +26,7 @@ function getConfig(){ } function writeConfig($config){ - $allowed=array('CONFIG_FOOTEROWNERNAME','CONFIG_FOOTEROWNEREMAIL','CONFIG_ADMINLOGIN','CONFIG_ADMINPASSWORD','CONFIG_DBHOST','CONFIG_DBNAME','CONFIG_DBUSER','CONFIG_DBPWD','CONFIG_DOCUMENTROOT','CONFIG_DATADIRECTORY','CONFIG_HTTPFORCESSL','CONFIG_DATEFORMAT'); + $allowed=array('CONFIG_FOOTEROWNERNAME','CONFIG_FOOTEROWNEREMAIL','CONFIG_ADMINLOGIN','CONFIG_ADMINPASSWORD','CONFIG_DBHOST','CONFIG_DBNAME','CONFIG_DBUSER','CONFIG_DBPWD','CONFIG_DOCUMENTROOT','CONFIG_DATADIRECTORY','CONFIG_HTTPFORCESSL','CONFIG_DATEFORMAT','CONFIG_SITEROOT'); $requireRetype=array('CONFIG_ADMINPASSWORD','CONFIG_DBPWD'); foreach($requireRetype as $name){ if($config[$name]!=$config[$name.'_RETYPE']){ @@ -57,6 +57,11 @@ function writeConfig($config){ //config_placeholder + + + + + if(!isset($CONFIG_ADMINLOGIN)){ if(!isset($_POST['CONFIG_FOOTEROWNERNAME'])){ getConfig(); |