]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix bug where siteroot was not configuredcd
authorRobin <robin@Amaya.(none)>
Mon, 15 Mar 2010 14:55:50 +0000 (15:55 +0100)
committerRobin <robin@Amaya.(none)>
Mon, 15 Mar 2010 14:55:50 +0000 (15:55 +0100)
config/config.php

index 341a1321387c8c343c663bb4f9ba9a0a4014c5d8..8470ad3f24b633fc52f2292177874f129f25b693 100755 (executable)
@@ -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();